#Set Up for Fun Site
To run this locally, you need node, npm, and mongdb.
-
Install Node and npm comes bundled with it.
-
While you're in the root of this repo, install all of my dependencies, using npm. They are listed in package.json and can be installed with the command below.
$ npm install
-
Create a .env file and set process.env.CONNECTION_STRING, process.env.SECRET, process.env.API_URL.
-
Look up how to run a mongo server in your environment. In a Mac environment, try running this in a new terminal windo:
$ ./mongod
- Open a new terminal to query your mongo database. You may need to do this as a super user. In a Mac environment, try:
$ ./mongo name-of-database
Some nice queries to test are:
$ show collections
// lists collection names
$ db.<collection-name>.find()
// returns default number of records
- Run this app in your environment with
npm start
.