simple-modular-go

command module
v0.0.0-...-1fc7fac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 4 Imported by: 0

README

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)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
src
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL