Skip to content

Javad-Smn/simple-modular-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-modular-go

Simple modular server app for golang with JWT authentication

Installation

git clone https://github.com/Javad-Smn/simple-modular-go.git

Run

go run main.go (At root of project)

Active routes

1. Sign up

http://localhost:8080/v1/auth/sign-up

Body of request

{ "name": "Karim", "age": 28, "password": "4321" }

2. Login

http://localhost:8080/v1/auth/login

Body of request

{ "name": "Karim", "password": "4321" }

3. Get me

http://localhost:8080/v1/users/me

Header of request

Add returned token in login request to header! (Token: token)

About

Simple modular server app for golang with authentication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published