Skip to content
Beatriz Pérez edited this page Jan 10, 2021 · 25 revisions

Requirements

  • Docker: sudo apt-get install docker
  • Docker compose: sudo apt-get install docker-compose
  • Mongo client for initializing DB: sudo apt-get install -y mongodb-org=4.2.3 mongodb-org-shell=4.2.3 mongodb-org-mongos=4.2.3 mongodb-org-tools=4.2.3
  • Npm: sudo apt-get install npm
  • Config file: project_folder/src/python/config.py

Automatic mode

  • sudo ./launch.sh (Check the options with -h)

Manual mode

Docker deployment commands (WIP)

  • Execute inside src folder: cd src/
  • List of services:
    • web (build) (up)
    • db (up)
  • To build: sudo docker-compose build <service>
  • To run: sudo docker-compose up <service>

Install npm modules

(inside src/static)

  • npm install

Logs

Visualize the logs of the application and database

  • docker logs src_web_1
  • docker logs src_db_1

Help:

  • docker logs --help

Clone this wiki locally