Skip to content

GalvanizeDataScience/express-mongoose-bookmarks-api-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General Assembly Logo

Express Mongoose Bookmarks API

Demo of using Mongoose with Express to build a simple API of bookmarks.

Prerequisites

  • Node
  • MongoDB and Mongoose
  • Express

Instructions

  1. Fork and clone this repository.
  2. Change into the new directory.
  3. Fulfill the listed requirements.

Instructions

Part 1: Basic Setup

Create a package.json and build out the file system for our simple API.

Part 2: Database and Mongoose

Set up the database connection and define a model based on the provided bookmarks data.

Part 3: Express

Set up a simple Express app with a single endpoint.

Part 4: Express and Mongoose

Use your Mongoose model to query data from within your Express route. Return the results to the user as JSON.

  1. All content is licensed under a CC­BY­NC­SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact legal@ga.co.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.5%
  • Procfile 0.5%