A simple, dockerized, golang RESTful API with react frontend.
Golang RESTful API based on this tutorial
Note: You will need to yarn install
and yarn build
before running the containers. The ui container copies the build/
directory.
# build app/ui docker images
$ make build
# start app/ui containers
$ make up
# rebuild app/ui images
$ make rebuild
For now, to run locally:
# install dependencies
$ yarn install
# start frontend dev server
$ yarn start
# build backend go app
$ docker-compose build app
# run app
$ docker-compose run app
# navigate to http://localhost:8080 in your browser
- Frontend - http://localhost:8080
- API - http://localhost:5001/api/v1/todos/
- Get
API_HOST
env var in react app