For deploying the application you need:
- Docker and a running docker daemon
- NodeJS
- npm (Node package manager)
- PM2
- In the project's root you have to run
node scripts/deploy.js
--username [the username of your mysql database, the default value is 'dev']
--password [your mysql password, required]
--db [your mysql url (including portnumber)]
In web-client/
:
npm install
pm2 start app --name semiprofe
To clear containers:
docker rm -f $(docker ps -a -q)
To clear images:
docker rmi -f $(docker images -a -q)
To stop the node process:
pm2 delete semiprofe