Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.7 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.7 KB

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