See project live at the-best-words.com.
A small sampling of Donald Trump's best words. Heavily inspired by (and indebted to) They Don't Want You To Win, a far funnier and less depressing project.
- Clone repository
- Prepare local database:
- Install mongoDB
- Initialize your local mongoDB database by running
mongod
- Setup local instance of app:
- Install node
- Run
npm install
- Run
grunt db-seed
to seed your local database - Run
grunt develop
In order to deploy, you'll need to setup a hosted mongo database somewhere. Once you have set your hosted database up,
you'll need to specify the environment variables below in whatever environment will be running the app in production.
To run it locally in the production environment, create a .env
file in the project's root following this template:
DB_LOCATION=<location of mongoDB in production, e.g. 'ds123456.mlab.com:23456'>
DB_USER=<username to access DB>
DB_PASSWORD=<password to access DB>
FB_APP_ID=<id of facebook app, for sharing>
GA_TRACKING_ID=<Google Analytics tracking ID>
Then seed your production database by running grunt db-seed --env=production
.