The application can be found at https://stickerfy.herokuapp.com/
You need the following properly installed before being able to run this application:
- Node
- NPM (which is bundled with Node)
- MongoDB Community Edition
- Clone this repository
git clone https://github.com/meaghanlewis/stickerfy.git- Install dependencies
npm install-
Set the MONGODB_URI environment variable
On macOS/Linux use the following command from your terminal:
export MONGODB_URI=mongodb://localhost:27017/shoppingOn Windows, run:
set MONGODB_URI=mongodb://localhost:27017/shopping-
Start up MongoDB
Refer to Run MongoDB Community Edition for the latest command and version to use on your operating system. on macOS, I run this command from the terminal:
brew services start [email protected]- Populate shopping database
node seed/product-seeder.js- Once the project is setup, start the dev server with Nodemon.
npm run devServer will start at: http://localhost:3000
- to run:
npm run unit-test - do not require the dev server running
- to run:
npm run integration-test - start up the dev server when running
- to run:
npm run ui-test - note: dev server must be started by running
npm run devbeforehand