npm install
npm start
- Run all tests
npm test
- Run only one tests file
npm test my_file.test.js
- Run test into a Docker container
npm run docker:test
To run the full app in a Docker container :
docker compose up --build
To stop the docker container :
docker compose down
To run the app being sure that everythiing else is down :
docker compose down && docker system prune -f && docker compose up --build
This run a docker container, with a MongoDB inside and the paysage-api app.
To acces the MongoDB from inside, use host : mongodb://mongo:27017
.
To acces the MongoDB from outside, use host : mongodb://127.0.0.1:27017
.
To access the Elasticsearch from inside, use host : http://elasticsearch:9200/
.
To access the Elasticsearch from outside, use host : http://localhost:9200/
.
To access the paysage-api from inside, use host : http://localhost:3000/
.
To access the paysage-api from outside, use host : http://localhost:3003/
.
To see the API docs, see : http://localhost:3003/docs/api/.
https://dataesr.stoplight.io/docs/paysage-api-1/95201cd74824d-bienvenue-sur-la-documentation-paysage
To deploy in production, simply run this command from your staging branch :
npm run deploy --level=[patch|minor|major]