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-api
Copy the .env.example
:
cp .env.example .env
The 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 base64
Add it to the .env
file:
APPROOV_BASE64_SECRET=approov-base64-encoded-secret-here
sudo docker-compose build
sudo docker-compose up -d node
sudo docker-compose down
sudo docker-compose logs --follow --tail 20