CoW CMS - Content Management System
This project is a Content Management System for the cow.fi.
It is an instance of Strapi, a headless CMS.
API
Swagger Docs: https://cms.cow.fi/swagger.html
👨💻 Develop
yarn dev
Some requiremets are:
- At least Node v16 (use a LTS version)
- Yarn
- PostgreSQL (optional), for local dev is easier to use sqlite3 (the default). Alternatively you can use PostgreSQL
Dev locally using PostreSQL
The easiest is to develop using sqlite, but if you want to use PostgreSQL, you need to install it first:
Once you know the running port, you can setup the .env file:
cp .env.example .env
Edit the .env file and set the database connection
To start with the new database, you simply start the dev server:
yarn dev
👷♀️ Build
yarn build
Run project (from a previous build)
🚨 For this command to work you must first have a build in place. You can do this via the previous command, yarn build
.
yarn start
🐳 Run with Docker
cp .env.example .env
docker compose up
Then visit:
Also, a Postgres database will be exposed on port 5432
.
⌨️ Strapi CLI
Strapi comes with a powerful CLI tooling
Strapi documentation
yarn strapi version
yarn strapi help