chemins-de-la-transition / semapps

https://lescheminsdelatransition.org
Apache License 2.0
4 stars 0 forks source link

SemApps

CDLT SemApps platform

Local development

Launch Fuseki

docker-compose up -d fuseki

Launch the middleware

Ask a develop for the OIDC client secret and add it in a new .env.local file in the middleware directory:

SEMAPPS_OIDC_CLIENT_SECRET=

You can now launch the middleware in mode REPL:

cd middleware
yarn install
yarn run dev

Import the types (actor, administrator, contributor, traveler):

call importer.types.freshImport
call importer.status.freshImport
call importer.publication-status.freshImport

Create your first admin user

call users.createAdmin --email john@domain.com --username john 

Launch the back office

Create a .env.local file in the /backoffice directory with the same Mapbox access token:

REACT_APP_MAPBOX_ACCESS_TOKEN=

You can now launch the back office:

cd backoffice
yarn install
yarn start

Launch the front office

Ask a develop for the Mapbox access token and add it in a new .env.local file in the /frontoffice directory:

REACT_APP_MAPBOX_ACCESS_TOKEN=

Note: if you want to use a remote middleware, you can also set the REACT_APP_MIDDLEWARE_URL env var

You can now launch the front office:

cd frontoffice
yarn install
yarn start