/thoughtbnb

Primary LanguageJavaScript

ThoughtBnB

Build Status bitHound Score Code Climate Test Coverage Dependency Status

It's exactly what you think it is.

Environments

Getting Started

Using Vagrant

Dependencies
Google maps javascript API

This application uses google maps javascript API to insert locations. You will need to get your own API key. Follow the following instructions

Start application
vagrant plugin install vagrant-cachier
vagrant up
vagrant ssh
cd /vagrant
npm install
GMAPKEY=<keyFromInstructionAbove> npm start

Starts the website at http://192.168.33.15:3000

In order to reload the app on changes, use nodemon ./bin/www instead of npm start

If you're working in an area without an internet connection, use set the flag USE_LOCAL_ASSETS to true

Note: bcrypt is compiled specifically for your OS during npm install, so if you run npm install on OS X, then it will break in Ubuntu, and vice versa. To fix, remove node_modules/bcrypt and then do npm install again from the OS you wish to start the app from.

Not Using Vagrant (Local Setup)

Dependencies
  • node.js
  • npm
  • mongodb
  • grunt-cli and nodemon npm packages (globally)
npm install -g grunt-cli nodemon
Start application

Start mongodb, then

npm install
npm start

Test data

The database has been pre-populated. To login, use testing@thoughtbnb.com and test as password