Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.01 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.01 KB

Reviews-service

Review service component for Airbnb mockup side-by-side comparison with actual Airbnb page reviews-service

Related Projects

Table of Contents

  1. Usage
  2. Requirements
  3. Development

Usage

  1. "start": "node server/server.js",
  2. "dev": "webpack --watch --config webpack.dev.js",
  3. "build": "webpack --config webpack.prod.js",
  4. "db-init": "node database/seed.js",
  5. "test": "jest"

Requirements

An nvmrc file is included if using nvm.

  • Node 6.13.0
  • etc

Development

Installing Dependencies

From within the root directory:

npm install -g webpack
npm install

Seeding Database

For testing and development purposes, you may find it helpful to seed a database.

After starting MongoDB and installing dependencies, run the seed script, npm run db-init.

reviews-service