The Seebrücke CMS is build on top of Strapi, a headless CMS.
With the minimal setup you can create a new strapi instance, which uses sqlite as database. The database file will be stored in .tmp/data.db
.
The database setup is pre-configured in config/env/development/database.js
.
- Install npm dependencies
npm run install
- Start the application
npm run develop
- You should now be able to access the admin panel via localhost:1337/admin.
NODE_ENV
needs to be set to production
.
- Install npm dependencies
npm run install
- Build the application
npm run build
- Start the the application
npm run start
Some content changes (e.g. redirects) needs to trigger a rebuild of the frontend. For that, strapi needs to call a webhook provided by vercel.
- If you haven't already copy the
.env.example
file:
cp .env.example .env
- Enter your Algolia credentials into
.env
:
- VERCEL_PRODUCTION_WEBHOOK
- If you haven't already copy the
.env.example
file:
cp .env.example .env
- Enter your Algolia credentials into
.env
:
- ALGOLIA_PROJECT
- ALGOLIA_ACCESS_TOKEN
- ALGOLIA_INDEX
The configuration database of the production environment is set in config/env/production/database.js
.
- If you haven't already copy the
.env.example
file:
cp .env.example .env
- Enter the following credentials into your
.env
:
- DATABASE_HOST
- DATABASE_NAME
- DATABASE_USERNAME
- DATABASE_PASSWORD