26 lines
1.2 KiB
Markdown
26 lines
1.2 KiB
Markdown
# lumbung-kiosk-cms
|
|
|
|
[](https://drone.autonomic.zone/ruangrupa/lumbung-kios-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](https://kios-admin.lumbung.space). CI/CD is powered by [Drone](https://drone.autonomic.zone/ruangrupa/lumbung-kios-cms), 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.
|
|
|