A wishlist app built with a Go backend, React frontend, PostgreSQL and Docker.
This project was built with the intent of having a fully functional + completed web application built with a Go backend and React frontend. In the end, I just wanted to be able to practice using some new skills and this project reflects that. The web app only has the simple functionality of:
- Listing all items in the wishlist on the page.
- Adding items to the wishlist.
- Deleting items from the wishlist.
- Updating items from the wishlist.
By implementing these simple operations, I was able to practice developing a RESTful API using Go.
Deployment is split into two stages, both of which will have their steps documented here. The two stages are:
- PostgreSQL + Go Backend API
- React Frontend We'll begin by detailing how to get the PostgreSQL + Go Backend API deployed and running.
The deployment of both PostgreSQL and our Go backend API have been joined together in a single docker-compose.yml
in backend/
. In order to get them up and running, we recommend the following steps:
- cd backend/
- docker-compose build --no-cache
- docker-compose up -d
Now, we can check that the two containers deployed properly by
exec
ing into each container. In the DB container, we can check that Postgres is running by executing:
psql -U <postgres username>
To get the React frontend started, navigate to the frontend/
directory and execute the following command:
npm start
Now, you should see the web app open up in your default browser!