Make sure you have installed all of the following prerequisites on your development machine:
- Git - Download & Install Git. OSX and Linux machines typically have this already installed.
- Node.js - Download & Install Node.js and the npm package manager. If you encounter any problems, you can also use this GitHub Gist to install Node.js.
- Docker - Download & Install Node.js
To be able to run
- Node.js > 6.0
- Provide docker socket (/var/run/docker.sock)
- Docker for windows do not support Unix socket
- List all available Images and Containers (home)
- Create new Container (create) (provide and images name and name {optional: tag})
- Start/Stop/Restart/Delete a container (actions)
- List stats of a container (info)
- List logs of a container (logs)
- (info,logs pages requires reloading the page)
The recommended way to get MEAN.js is to use git to directly clone the MEAN.JS repository:
$ git clone https://github.com/kariolos/tradeline.git
This will clone the latest version of the tradeline repository
Once you've downloaded the repository and installed all the prerequisites, you have to install the dependencies
To install the dependencies, run this in the application folder from the command-line:
$ npm install
- It will install the dependencies needed for the application to run.
#Run your application using npm:
$ npm start
Your application should run on port 3000 with the development environment configuration, so in your browser just go to http://localhost:3000
-
Install Docker
-
Local development with Docker:
$ docker build -t 'tag-name' .
$ docker run -d -v /var/run/docker.sock:/var/run/docker.sock -p ip:port:3000 'tag-name'