- WSL 2 (Windows)
- Docker Desktop (MacOS & Windows)
- Dev Containers extension for VSCode
Enable host networking in Docker Settings / Resources, for easy development.
-
Create an
.envfile inside the.devcontainerfolder.POSTGRES_USER="starter" POSTGRES_PASSWORD="1234" POSTGRES_DB="starterdb" POSTGRES_URL="postgresql://starter:1234@postgres:5432/starterdb?schema=public"Replace
starter,starterdb, and1234with desired values. -
Reopen the project in a Dev Container using VSCode.
-
Run the project inside your Dev Container.
# API npm i npm run db:setup npm run dev# SPA cd frontend npm i npm run dev
-
Provision a Postgres database, deploy the web service to Render by linking your GitHub repo, set
POSTGRES_URLenv variable. -
The build command in Render should be
./scripts/build.sh