- Clone this project to your local machine
https://github.com/victorsteven/manage-jwt.git
Application was deployed to Heroku. Use public URL https://manage-jwt.herokuapp.com with API endpoints.
-
Add your database details in the .env file.
-
Running Application
Run the command below
$ go run main.go
-
Use
http://localhost:8888
as base url for endpoints
METHOD | DESCRIPTION | ENDPOINTS |
---|---|---|
POST | Register/Signup | /user |
POST | Login | /login |
POST | Create a todo | /todo |
POST | Logout | /logout |
- Run test for all endpoints
run the command below(ensure that your test details is setup in the .env file)
$ go test ./...