Skip to content

larsgerber/minimalism-blog

Repository files navigation

Frontend and backend for my blog

Run locally

This will run both a Node dev server with hot reload and a PocketBase instance with authentication and API ready to go.

Frontend

Install dependencies

npm install

Start gulp

npm run gulp

Start dev server

npm run dev
URL Function
localhost:8090/_/ PocketBase Admin UI
localhost:8090/api/ PocketBase REST API
localhost:8080/ Nodemon dev server

Backend

docker compose -f docker-compose.pb.yaml up

Import schema and create data

Docker

Frontend

Build

docker buildx build --platform linux/amd64 -f ./Dockerfile.app . -t minimalism-app:0.0.1

Run

docker run --rm -p 8080:8080 minimalism-app:0.0.1

Compose

docker compose -f docker-compose.app.yaml up

Backend

Build

docker buildx build --platform linux/amd64 -f ./Dockerfile.pb . -t minimalism-pb:0.0.1

Run

docker run --rm -p 8090:8090 minimalism-pb:0.0.1

Compose

docker compose -f docker-compose.pb.yaml up

Acknowledgements

Built with 🐳 and ❤️