Giter VIP home page Giter VIP logo

todoapijs's Introduction

Todo

Angular, NodeJS, ExpressJS and MongoDB RESTful API Tutorial. See Creating a RESTful API Tutorial post for more details.

Installation

You just need to install dependencies:

npm install

And start the program

npm start

todoapijs's People

Contributors

amejiarosario 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  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  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  avatar  avatar  avatar

todoapijs's Issues

Notes don't save

Notes don't save from repo clone. TodoDetailController doesn't have the proper Update function defined in the angular routes.

Cast to ObjectId failed for value "1" at path "_id"

In browser: http://localhost:3000/todos/1

it returns:

Cast to ObjectId failed for value "1" at path "_id"

undefined

CastError: Cast to ObjectId failed for value "1" at path "_id"
at ObjectId.cast (/Users/zwb/Documents/Code-Learning/node-workspace/todoAPIjs/node_modules/mongoose/lib/schema/objectid.js:116:13)
at ObjectId.castForQuery (/Users/zwb/Documents/Code-Learning/node-workspace/todoAPIjs/node_modules/mongoose/lib/schema/objectid.js:165:17)
at Query.cast (/Users/zwb/Documents/Code-Learning/node-workspace/todoAPIjs/node_modules/mongoose/lib/query.js:2336:32)
at Query.findOne (/Users/zwb/Documents/Code-Learning/node-workspace/todoAPIjs/node_modules/mongoose/lib/query.js:1118:10)
at Function.findOne (/Users/zwb/Documents/Code-Learning/node-workspace/todoAPIjs/node_modules/mongoose/lib/model.js:1052:13)
at Function.findById (/Users/zwb/Documents/Code-Learning/node-workspace/todoAPIjs/node_modules/mongoose/lib/model.js:989:15)
at /Users/zwb/Documents/Code-Learning/node-workspace/todoAPIjs/routes/todos.js:25:8
at Layer.handle as handle_request
at next (/Users/zwb/Documents/Code-Learning/node-workspace/todoAPIjs/node_modules/express/lib/router/route.js:100:13)
at Route.dispatch (/Users/zwb/Documents/Code-Learning/node-workspace/todoAPIjs/node_modules/express/lib/router/route.js:81:3)

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.