- Full-Stack application.
- Uses an Express API to serve our data from a Mongo database.
- Consumes our API with a separate front-end built with React.
- Has multiple relationships and CRUD functionality.
- create a
.env
file in the root of this project and put in the relevant API keys. These Keys are from Mapbox (www.mapbox.com) and ReactFilestack (https://www.npmjs.com/package/filestack-react)
sample .env
file content:
MAPBOX_TOKEN={YOUR KEY}
imageKEY={YOUR KEY}
NEWRELIC_INSERT_KEY={YOUR KEY}
- initialise mongodb use instructions here: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/#run-mongodb-community-edition
commands:
xcode-select --install
brew tap mongodb/brew
brew install [email protected]
brew services start [email protected]
- Open up this project in terminal and install the packages with
npm i
- Open a tab and start the backend with
npm run serve:backend
- Open a second tab and start the backend with
npm run serve:frontend
- Open a third tab and seed the project with data by running
node db/seeds.js