Before doing anything else make sure you have these applications:
-
This is used for running bower and downloading required libraries
-
This is the SVN used for downloading and updating this repository
npm
and git
are required during development only, they are not used in production!
$ git clone https://github.com/sangahco/docker-seminar.git
Go inside the new folder and execute these commands from a console:
$ npm install
$ npm start
npm install
will install the necessary modules and will prepare the root folder with necessary dependencies.
Docker images ready to run.
First make sure Docker and Docker Compose are installed on the machine with:
$ docker -v
$ docker-compose -v
If they are missing, follow the instructions on the official website (they are not hard really...):
$ docker-compose build
$ docker-compose up -d
PM2 is the process manager for Node.js applications that we use for this app, if you are curious about it!