Lightweight personal stack for louisplace.com — Next.js frontend + Spring Boot backend, packaged with Docker Compose.
- Frontend:
client(Next.js) - Backend:
backend(Spring Boot) - Orchestration:
docker-compose.ymlat repository root
- Docker & Docker Compose
- Ports 3000 and 8080 must be free on your machine (or update compose config)
This repo includes example env files. Copy them to enable sensible defaults for local runs:
cp ./client/.env.example ./client/.env
cp ./backend/.env.example ./backend/.env
cp .env.db.example .env.db
cp .env.oauth.example .env.oauthEdit those copies to override any values you need (database credentials, OAuth secrets, etc.).
Runs docker compose up -d --build and brings the frontend + backend up in detached mode.
- To start just the frontend for local development, use the
clientpackage scripts (requires Node):
cd client
pnpm install # or npm/yarn
pnpm dev- To run both services with Docker Compose (fast way to replicate production locally):
docker compose up --build- Use
./deploy.shfor simple deploys; it expects you to be on a machine with Docker installed and authenticated if you pull private images. - If you want site-wide defaults for styling, check
client/src/app/globals.css.
- If ports are in use, either stop the occupying service or change ports in
docker-compose.yml. - Install recommended vscode extensions.
If you'd like, I can also add a one-command script to bootstrap the env files and run the stack (example: scripts/start-local.sh).