Guide to deploy the NodeJS Express backend into a production demo server.
For now this will be a small set of manual steps, but later we may want to automate this via the CI pipeline, by building the docker image and the mobile app binary for the release.
git clone https://github.com/approov/quickstart-nodejs-express-token-check.git
cd quickstart-nodejs-express-token-check/servers/shapes-apiCopy the .env.example:
cp .env.example .envThe v2/* endpoints are protected by the Approov Token, thus we need to set the Approov secret for nodejs-express-shapes.approov.io.
From your office computer, not the server, get the Approov secret with:
approov secret -get base64Add it to the .env file:
APPROOV_BASE64_SECRET=approov-base64-encoded-secret-heresudo docker-compose buildsudo docker-compose up -d nodesudo docker-compose downsudo docker-compose logs --follow --tail 20