Skip to content

RobertJGabriel/Tate-Gallery-in-Express-node-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alt text ##About Using the likes of Node, express, angular.js and mongodb.

##Set up

  1. Clone or download the repo.
  2. Navigate into the repo.
  3. Import the Database.
  4. Run npm install
  5. Run npm start

Contents

  • /public - static directories suchs as /images
  • /routes - route files for tutorial project
  • /views - views for tutorial project
  • README.md - this file
  • server.js - central app file for tutorial project
  • package.json - package info for tutorial project

Import

  1. mongod --dbpath /Users/robertgabriel/Documents/College/Advanced_Javascript/tategallery/data
  2. mongoimport --db assesstment --collection artworks --drop --file /Users/robertgabriel/Documents/College/Advanced_Javascript/tategallery/public/json/artworks.json
  3. mongoimport --db assesstment --collection artists --drop --file /Users/robertgabriel/Documents/College/Advanced_Javascript/tategallery/public/json/artists.json

Releases

No releases published

Packages

No packages published