This is a quick and dirty setup for a fullstack web app. It just as a proof of concept on how to deploy a database, backend and frontend in docker containers.
You need to have docker installed to run this repository.
Setup an .env file for the database url like this:
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres?schema=public"
Run the docker containers:
docker compose up db -d
docker compose up backend -d
docker compose up frontend -d
You can check if the containers are running with:
docker ps -a
The project frontend runs on port 3000 by default :)