- Clone this repository
- Make sure you have go installed, together with c compile tools like gcc
- Open the project directory in your terminal and run:
go run main.go - Start messing around with the API
POST the following data to localhost:8080/users
{
"name": "Mike Chumba",
"email": "email@gmail.com",
"password": "password",
"gender": "Male"
}POST user credentials to localhost:8080/login
{
"email": "email@gmail.com",
"password": "password"
}You should receive your authentication token.
try to GET the localhost:8080/auth route and include the following header:
x-access-token: YOUR_TOKEN_HER