SemApps instance for the Coopérative Oasis
- Node 18+
- Docker (with compose plugin)
Launch the Jena Fuseki triplestore on port 3030:
docker-compose up -d fusekiIf you don't have a mail provider, you can use MailCatcher to see the emails sent. They will be available at http://localhost:1080
docker-compose up -d mailcatcherLaunch the middleware on port 3000:
cd middleware
yarn install
yarn run devThis will launch Moleculer in REPL mode, allowing you to call actions directly.
Run these commands on Moleculer REPL:
call importers.types.freshImport
call importers.groups.freshImport
call importers.status.freshImport
call initialization.createAdmin --email youremail@domain.com
call webacl.resource.refreshContainersRightsThe initialization.createAdmin command will send an email to the given address. Go to http://localhost:1080 if you launched MailCatcher. This will allow you to set a password and connect to the backoffice.
Launch the backoffice on port 4000:
cd backoffice
yarn install
yarn startLaunch the frontoffice on port 5000:
cd frontoffice
yarn install
yarn startTo modify packages on the SemApps repository and see the changes before they are published, we recommend to use yarn link.
cd /SEMAPPS_REPO/src/middleware
yarn run link-all
cd /OASIS_REPO/middleware
yarn run link-semapps-packagescd /SEMAPPS_REPO/src/frontend
yarn run link-all
cd /OASIS_REPO/backoffice
yarn run link-semapps-packages
cd /OASIS_REPO/frontoffice
yarn run link-semapps-packagesAdditionally, frontend packages need to be rebuilt, or your changes will not be taken into account.
You can use yarn run build to build a package once, or yarn run dev to rebuild a package on every change.