Giter Club home page Giter Club logo

rest-api-course's Introduction

RETIRED - please DO NOT Use

Instead use the repository below

https://github.com/acloudfan/REST-API-Course-V2

Checkout the course on UDEMY: https://www.udemy.com/course/rest-api/?referralCode=ADE763DAA790A3F0D211

Created as part of the course on "REST API". Demonstrates the setting up of URI for the REST API

http://www.acloudfan.com/learn-REST-API

Following node practices defined here: https://github.com/felixge/node-style-guide https://blog.risingstack.com/node-js-best-practices/

Recent Change - 12/25/2017

  • Data updated for the testing. ** Instead of providing the User/Password now the URI for DB is used in the format:

mongodb://:@SERVER:PORT/DB-NAME

  1. Clone this project on local file system

  2. Pre-requisistes a. Understanding of node/npm b. An instance of MongoDB available either locally or remotely c. Import the data available in the repository

  3. Run > npm install Deploys the packages express body-parser mongoose

Create from scratch

  1. create the project

  2. git init

  3. add .gitignore

  4. npm init

  5. npm install the packages (express,body-parser,mongoose)

  6. create folder = models

rest-api-course's People

Contributors

acloudfan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rest-api-course's Issues

tests/TestDbOps.js

Hi acloudfan,

Just find a bug and it should be an easy fix.

In tests/TestDbOps.js, line 43,

console.log("Failed to get vacations : %s",criteria)

The varaible "criteria" is undefined. After changing it from "criteria" to "selectCriteria", the following command run without issue.

node .\tests\TestDbOps.js

Cheers,
Vincent

update login

i receive the following error when I start index.js

node:13972) DeprecationWarning: open() is deprecated in mongoose >= 4.11.0, use openUri() instead, or set the useMongoClient option if using connect() or createConnection(). See http://mongoosejs.com/docs/connections.html#use-mongo-client
Db.prototype.authenticate method will no longer be available in the next major release 3.x as MongoDB 3.6 will only allow auth against users in the admin db and will no longer allow multiple credentials on a socket. Please authenticate using
MongoClient.connect with auth credentials.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.