lumbung-kios-cms/README.md

26 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2023-01-18 13:34:42 +00:00
# lumbung-kiosk-cms
2023-01-24 11:42:59 +00:00
[![Build Status](https://drone.autonomic.zone/api/badges/ruangrupa/lumbung-kios-cms/status.svg?ref=refs/heads/main)](https://drone.autonomic.zone/ruangrupa/lumbung-kios-cms)
This project was created using `npx create-payload-app` using the ts-blank template.
2023-01-18 13:34:42 +00:00
## Local development
2023-01-18 13:34:42 +00:00
- First, create a `.env` file in the root, and populate it with these values:
2023-01-18 13:34:42 +00:00
```
MONGODB_URI=mongodb://mongo:27017/lumbung-kios-cms
PAYLOAD_SECRET=5c8ac4a2cd754247f38ae726
PAYLOAD_PUBLIC_SERVER_URL=http://localhost:3000
```
2023-01-24 12:24:55 +00:00
- 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.
2024-02-14 08:51:32 +00:00