Skip to content

A go, postgres API with basic jwt auth starter, complete with a react frontend

Notifications You must be signed in to change notification settings

aesrael/go-postgres-react-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO-React starter

This is a basic example of a go web server with a react frontend.

It uses the go fiber framework

Getting started

Running locally

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.

Using docker

Ensure you have docker installed

make docker-build
make docker-run

Server is live on :8081 and UI is on :3000

Endpoints

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

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT