Backend CMS for lumbung Kiosk map
|
||
---|---|---|
src | ||
.drone.yml | ||
.env.example | ||
.gitignore | ||
.npmrc | ||
.yarnrc.yml | ||
compose.yml | ||
docker-compose-local.yml | ||
Dockerfile | ||
entrypoint.sh.tmpl | ||
nodemon.json | ||
package.json | ||
README.md | ||
tsconfig.json | ||
yarn.lock |
lumbung-kiosk-cms
This project was created using npx create-payload-app
using the ts-blank template.
Local development
- First, create a
.env
file in the root, and populate it with these values:
MONGODB_URI=mongodb://mongo:27017/lumbung-kios-cms
PAYLOAD_SECRET=5c8ac4a2cd754247f38ae726
PAYLOAD_PUBLIC_SERVER_URL=http://localhost:3000
- Run
docker-compose -f docker-compose-local.yml up
to get the application running locally. - The application will have no data by default, so you will have to create your own test products, couriers, retailers, dispatches, and makers.
Deployment & production setup
Push commits, it will auto-deploy to kios-admin.lumbung.space. CI/CD is powered by Drone, it uses the Dockerfile
in the root project folder for builds. You can test builds locally using docker build .
.
The application is running on the ruangrupa-dedi
server as a vanilla Docker swarm stack.