Skip to content

openstad/openstad-management-panel

Repository files navigation

An admin panel for creating & managing sites in the openstad ecosystem

Prerequisites

1. Set .env values

PORT=7777
PRODUCTION_SERVER_IP=132.123123 #For d
WILDCARD_HOST=cms.staging.amsterdam.nl
API_URL=
APP_URL=
USER_API=http://localhost:4000/api/admin
USER_API_CLIENT_ID=ccc
USER_API_CLIENT_SECRET=ccccc
COOKIE_SECURE_OFF=yes #notforlive
SESSION_SECRET= #random
SITE_ID=6 #site Id from the openstad api
SITE_API_KEY=xxxxxxx #site Id from the api
BASIC_AUTH_USER= #basic auth pass, whatever you prefer
BASIC_AUTH_PASSWORD=
EXTERNAL_SITE_REPO=API_URL/api/repo
FRONTEND_URL=http://cms.staging.amsterdam.nl
PUBLIC_IP=

# Mongodb connection (Must be same server as frontend service)
MONGO_DB_HOST=localhost
MONGO_DB_PORT=27017
MONGO_DB_USER=''
MONGO_DB_PASSWORD=''
MONGO_DB_AUTHSOURCE=''
# Override previous variables and use a connection string to connect.
# [!!] {database} gets replaced in the application and is required to be in the connection string
MONGO_DB_CONNECTION_STRING='mongodb://localhost:27017/{database}'

2. Run NPM install

npm i

3. Run dev server

npm run dev