This is the content management system (CMS) for youngvision.org (repository), built using Payload CMS. It is currently used to create and manage the events displayed on our website.
Before you begin, ensure you have the following installed:
- Node.js (v16 or higher)
- pnpm
- docker / podman
-
Clone the repository
git clone https://github.com/YoungVision-eV/website-cms.git cd website-cms
-
Install dependencies
pnpm install
-
Environment Setup
- Copy the
.env.example
file to.env
- Copy the
-
MongoDB Setup
- Start MongoDB for example with Docker:
docker run --name mongodb-website-cms -p 27017:27017 mongo:latest
- If needed update the
DATABASE_URI
in the.env
file
- Start MongoDB for example with Docker:
-
Development
- Start the development server:
pnpm dev
- The CMS will be available at
http://localhost:3000/admin
- Start the development server:
-
Build for Production
pnpm build
-
Start Production Server
pnpm serve
src/collections/
- Collection definitionssrc/seed/
- Script and media for seeding sample datasrc/payload.config.ts
- Payload configurationsrc/server.ts
- Express server
pnpm dev
- Start development serverpnpm build
- Build for productionpnpm serve
- Start production serverpnpm generate:types
- Generate TypeScript types (which are used in the Frontend)
Thanks goes to these wonderful people (emoji key):
Hannes 💻 📖 |
Jonas 🚇 💻 |
ap 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!