$ cd python
$ python3 -m venv .venv
$ source .venv/bin/activate
$ python app.py
$ cd node/
$ node index.js
**In theory, pm2
should be running the app, but if not, restart the process with the following comands: **
$ cd python/
$ source .venv/bin/activate
$ pm2 start app.py --name mtapi --interpreter python3
$ cd node/
$ pm2 start index.js
Please start things in the following order:
- Python:
docker run -p 5000:5000 fdterr/mtapi:latest
- Nodejs
Line 14 should become
with open(args.stations_file, 'r') as f:
Line 36 should become
station['id'] = md5(''.join(station['stops'].keys()).encode('utf-8')).hexdigest()[:ID_LENGTH]