Backend for Climate Map
Requires Docker. Create an .env file (see .env.example) and run with
docker-compose up --build
The server has endpoint/integration tests that utilize the Postgres test database.
The test commands need to be run within the docker container:
docker exec -it climate-map-node yarn test
docker exec -it climate-map-node yarn test:watch
In .env file, set
NODE_ENV=production
and run
docker-compose -f docker-compose-prod.yml up --build -d