This will run both a Node dev server with hot reload and a PocketBase instance with authentication and API ready to go.
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 |
docker compose -f docker-compose.pb.yaml up
Import schema and create data
- Open http://localhost:8090/_/
- Create account
- Go to http://localhost:8090/_/#/settings/import-collections
- Load ./pb_schema/schema.json
- Merge collections
- Create new author collection item
- Create new post collection item and set active to true
- Open the frontend http://localhost:8080
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
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
Built with 🐳 and ❤️