Api to register mangas and manager those mangas.
To this project your need:
In cmd/server folder create a file .env with:
DB_URL= //database connection
JWT_SECRET= // your secret
JWT_EXPIRES_IN= // your time expires
BASE_URL_V1=http://localhost:3000/api/v1 // url of api
Start Docker in your machine and run this commands in your terminal:
## up mongodb, kafka and mysql
❯ docker compose up -d
## run this command to install dependencies:
❯ go mod tidy
## run this command inside cmd/server to start api(localhost:3000):
❯ go run main.go
- golang
- postgres
- docker
- gorm
- go-chi
- viper
Made by Janapc 🤘 Get in touch!