Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diogox/base-golang-rest-jwt
A boilerplate for any REST API projects that require a login system with (JWT) token authentication.
https://github.com/diogox/base-golang-rest-jwt
angular golang jwt jwt-authentication login-system react
Last synced: 14 days ago
JSON representation
A boilerplate for any REST API projects that require a login system with (JWT) token authentication.
- Host: GitHub
- URL: https://github.com/diogox/base-golang-rest-jwt
- Owner: diogox
- Created: 2019-04-08T22:17:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T03:15:54.000Z (almost 2 years ago)
- Last Synced: 2023-03-08T15:01:49.840Z (over 1 year ago)
- Topics: angular, golang, jwt, jwt-authentication, login-system, react
- Language: CSS
- Size: 7.74 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TODO
* After every change to th prisma data model, we need to run `prisma deploy`.
* Need to add `managementApiSecret` to the `docker-compose.yml`.# Usage
## Development Mode
To run the project in *development* mode, we need to run the `docker-compose.dev.yml` file, like so:
```
sudo docker-compose -f docker-compose.dev.yml up -d
```
And then, run the server's executable:
```
go run server/cmd/main.go
```If `redis` is installed on the local machine, you may need to disable it:
```
sudo systemctl stop redis
```
You can start it back up again, when you're done, with the command:
```
sudo systemctl start redis
```## Release Mode
To run the project in *Release Mode*, we only need to run the `docker-compose.yml` file, like so:
```
sudo docker-compose up -d --build
```(You may also have to disable `redis`, if you have it installed.)
# Tests
To run all the unit tests included, use the command:
```
go test ./...
```