Skip to content

seebruecke-org/cms

Repository files navigation

Seebrücke CMS

The Seebrücke CMS is build on top of Strapi, a headless CMS.

Minimal development setup

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.

  1. Install npm dependencies

npm run install

  1. Start the application

npm run develop

  1. You should now be able to access the admin panel via localhost:1337/admin.

Production setup

NODE_ENV needs to be set to production.

  1. Install npm dependencies

npm run install

  1. Build the application

npm run build

  1. Start the the application

npm run start

Setup the vercel deployment webhook

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.

  1. If you haven't already copy the .env.example file:

cp .env.example .env

  1. Enter your Algolia credentials into .env:
  • VERCEL_PRODUCTION_WEBHOOK

Setup algolia synchronization (optional)

  1. If you haven't already copy the .env.example file:

cp .env.example .env

  1. Enter your Algolia credentials into .env:
  • ALGOLIA_PROJECT
  • ALGOLIA_ACCESS_TOKEN
  • ALGOLIA_INDEX

Connect your strapi instance to the production database (optional)

The configuration database of the production environment is set in config/env/production/database.js.

  1. If you haven't already copy the .env.example file:

cp .env.example .env

  1. Enter the following credentials into your .env:
  • DATABASE_HOST
  • DATABASE_NAME
  • DATABASE_USERNAME
  • DATABASE_PASSWORD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •