Skip to content

01) Getting Started

Anthony Quintero-Quiroga edited this page May 16, 2017 · 1 revision
  1. Download technologies

First, download the environment and database used in our application.

Node.js version v5.8.0 – visit https://nodejs.org/en/

MongoDB version v3.2.4 – visit https://www.mongodb.org/downloads#production

  1. Download and install Git

Next, get the necessary files from GitHub. To do that, you will need to install Git.

Git version 2.7.3 – visit https://git-scm.com/downloads

  1. Clone files from server

After installing Git, to get the files from the server, do the following:

Open the Git terminal.

Navigate to the directory where you want the files saved.

git clone https://github.com/aframr/EmissaryWST.git

  1. Running the file

First, you want to run the server for MongoDB to store local data to the database. While you have MongoDB running on the background, you can start to preview locally on what the app looks like and its features.

#####Setting up MongoDB for Windows: https://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/

  1. On your CMD (command shell) , enter the commands:
    cd \MongoDB\Server\3.2\bin
    mongod.exe --dbpath C:\MongoDB\Server\3.2\data\db

#####For Window Users, do the following:
After you have MongoDB running on the background, you can start running the front-end.

  1. Run npm install -g gulp bower foreman, make sure you are in the WebStormTroopers repo dir
  2. Run npm install, make sure you are in the WebStormTroopers repo dir
  3. Run gulp build:dev to compile front-end and back-end
  4. Open up Git and type the command: nf start web

Note: Windows terminal will need administrator rights.


#####Setting up MongoDB for Macs:

  1. sudo mkdir -p /data
  2. sudo mkdir -p /data/db
  3. sudo chown ‘username’ /data/db

Run:
mongod
mongo

Note: mongod and mongo must be run in separate terminal windows. Be sure to run mongod first.

#####For Mac Users, do the following: After you have MongoDB running on the background, you can start running the front-end.

  1. Run npm install -g gulp bower foreman, make sure you are in the WebStormTroopers repo dir
  2. Run npm install, make sure you are in the WebStormTroopers repo dir
  3. Run gulp build:dev to compile front-end and back-end
  4. Open up Git and type the command: nf start web

Note: For other ways of running the application, please refer to the Gulp Tasks page.

Clone this wiki locally