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.