Back to results
A go, postgres API with basic jwt auth starter, complete with a react frontend
- stars
- 185
- watchers
- 5
- forks
- 46
- open issues
- 0
- Last updated
- 11/24/2021
A go, postgres API with basic jwt auth starter, complete with a react frontend
This is a basic example of a go web server with a react frontend.
It uses the go fiber framework
Clone this repository Download and install golang
Download and install postgres
Setup your postgres database, env secrets can be changed in the .env file
Ensure you have make installed.
make run
This will start the go server & the react frontend.
Ensure you have docker installed
make docker-build make docker-run
Server is live on :8081 and UI is on :3000
| endpoint | method | body | description |
|---|---|---|---|
| /api/session | GET | GET user session | |
| /api/login | POST | { email String, password String } | login user |
| /api/register | POST | { email String, password String, name String } | register new user |
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.