DoDidDone
DoDidDone is a React/Redux application built on MongoDB and Express. It's one of several applications designed to be a training ground for Junior Engineers at Truss.
Setup
- Fork and set up repo on your local machine
- Run
npm install
- Install webpack and webpack-dev-server globally with:
npm install -g webpack
andnpm install -g webpack-dev-server
- Add the heroku remote for production
git remote add heroku https://git.heroku.com/dodonedid.git
- Install Mongo
Setting up MongoDB
brew install mongodb
sudo mkdir -p /data/db
sudo chown `id -u` /data/db
Running server locally
- Run
mongod
in command line and leave it running - Run
npm start
from the root directory of the app in another terminal tab - Navigate to
localhost:3000
to view your local environment
Deploying to Heroku
- Commit your code
- Deploy to Heroku with
git push heroku master
Running tests
- Run
npm test
Adding tests
- If adding a new feature, create a test that addresses it, even if it's only finding that a created by that component exists.
- If altering a new feature, run
npm test
and ensure the test that addresses said feature still works; if not, please update. - Add .skip to a test or delete entirely if obsolete. Do not comment them out, per Mocha style.
License
TPLocation is available under the MIT license. See the LICENSE file for more info.