Install your environment
npm installRun the database server: See 2a5-api.
Prepare your local config:
cp ./.env.development.sample ./.env.development.localDo changes in ./.env.development.local now and make sure you share the same ADMIN_TOKEN as in 2a5-api.
Check that your API is running as expected via curl:
source .env.development.local && curl localhost:3000/api/token/correct -H "Accept: application/json" -H "Authorization: Bearer ${ADMIN_TOKEN}"Expected response: {"message":"success"}
Run the nodejs development server:
npm run devCheck linting:
npm run lintStart coding and open http://localhost:3002 with your browser of choice to check the result. The system supports hot reload.
Stop it with CTRL+C
The container will join the existing 2a5 network
docker compose --env-file ./.env.development.local up --buildStop it:
docker compose --env-file ./.env.development.local downDelete all generated files
rm -rf node_modules/ index.js