- Install and Setup WSL2
- Update packages
sudo apt update sudo apt upgrade
- Install Node
sudo apt install npm
Only need to run this one command for hot reload backend, frontend, and nginx reverse proxy
docker compose -f docker-compose.dev.yml up --build No cache: docker compose -f docker-compose.dev.yml build --no-cache docker compose -f docker-compose.dev.yml up
- Go to frontend directory
cd frontend
- Install packages
npm install
- Run Dev Server through Vite
npm run dev
- Go to backend directory
cd backend
- Install packages
npm install
- Run Dev server through nodemon
npm run dev:hot
- Download Docker Desktop w/ WSL2 integration
- Build Docker Image
docker compose build
- Run Docker Image
docker compose up -d
- Access site: localhost, proxy to api http://localhost/api/