alexprice1 / discussion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discussion App

Setup Environment

Install Node

Install nvm

Follow directions to install nvm.

Install Node

nvm install v4.2.3;
nvm alias default  v4.2.3;

Setup MongoDB

Follow install instructions.

Run Mongo from command line.

mongo

Then create the database.

use chalkpluschisel;

You can also use the environmental variable MONGO_URI to change the mongo uri.

Install Webpack

npm install webpack -g;

Install ESLint

npm install -g eslint;

Install Dependencies

npm install;

Reseed

npm run reseed;

Start Build

You have to run both webpack and the node server. Also, make sure mongo is running.

Node

npm run start;

Webpack

npm run develop;

Run Server

As long as you have built the project before, you only have to run node and have mongo running.

npm run start;

ESLint

We are using airbnb's styleguide for our linting.

npm run eslint;

About


Languages

Language:JavaScript 99.9%Language:HTML 0.1%Language:CSS 0.0%