This is a Rest Api(Gin, Go and MYSQL) project based on clean architecture. In this project i have implemented 4 API's:
signup
api(POST) On successful signup this api return a JWT Web Token.signin
api(POST) On successful signin this api return a JWT Web Token.Get profile
api(GET) This api use the JWT token from theAuthorization Header
from the request to autorize and return user data.Update profile
api(PUT) This api use the JWT token from theAuthorization Header
from the request to autorize and update user data.
- Clone this project on your machine.
- Run MYSQL db on your local machine or change the database details in
development.env
file. - Then run project in the VSCode
- Run docker on your machine
- Download the project and cd into it.
- Run
docker-compose up
Now you can access app on url localhost:8080