RyanWarner / app-sprout-server

Home Page:http://app-sprout.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

app-sprout-server

An opinionated starting point for Node backends.

Goal: Create a Node boilerplate that, when coupled with app-sprout-client, is able to register and login new users as well as CRUD some fields.

Stack

Server

Database

Build System

Tests

Local Setup

Prerequisites

  1. Homebrew
    • ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    • brew update
    • brew doctor
    • open ~./bash_profile
    • Add export PATH="/usr/local/bin:$PATH" to your bash profile and save it.
  2. NodeJS
    • brew install node
  3. Gulp
    • npm install --global gulp
  4. MongoDB
    • brew install mongodb

Start Up

  1. Set environment variables. Open your bash profile and set:
    • export NODE_ENV="development"
    • export SESSION_SECRET=“anything”
    • export NODE_HOST="YOUR_MAC.local:9000" where YOUR_MAC is equal to your computer name as defined in System Preferences >> Sharing >> Computer Name.
  2. npm install
  3. gulp

Tests

Tests are run through gulp, using gulp-spawn-mocha.

gulp tests

Coding Style

View ESLint config

About

http://app-sprout.com


Languages

Language:JavaScript 100.0%