Digital Situation Reports for UN OCHA.
# install node dependencies
$ npm install
# local development with hot reload at localhost:3000
$ npm run dev
For detailed explanation on how things work, checkout the Nuxt.js docs.
Be aware: While the Nuxt development mode is quite useful, ultimately this app has to run inside Docker for your feature to deploy smoothly. Before submitting a PR be sure to rebuild within Docker and run the server using the commands in the Docker section below.
All content is stored on Contentful. To access the service you need a Space ID and a Content Delivery API key.
Place them in a file at the repo root called .env
:
CTF_SPACE_ID=0123456789ab
CTF_ENVIRONMENT=master
CTF_CDA_ACCESS_TOKEN=0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqr
They will be copied to .contentful.json
during the docker build step (see below).
# first-time setup
$ docker-compose build
# run server and view logs
$ docker-compose up
# run server detached so that logs are not shown on screen
$ docker-compose up -d