Coder Social home page Coder Social logo

mongo-todo-list's Introduction

Mongo Todo List

This is Part 2 of a series of labs working towards building your first full stack web app.

  • Part 1 - TDD todo list
  • Part 2 - (this repo)
  • Part 3 - Express todo list pt1)
  • Part 3.1 - Mocha, Chai and Supertest todo list
  • Part 4 - Express todo list pt2
  • Part 5 - Multi Model todo list
  • Part 6 - Users todo list

We've learnt how to create CRUD actions and how to save them to a file. In this Lab, we'll instead save them to a Mongo Database database using Mongoose.

You can use the build in REPL to test your functionality.

Getting Started

  • Fork and clone this repository
  • Run yarn install to install dependencies
  • yarn start - run the REPL

Requirements

Add a Mongoose schema and model to your models/todo.js file. Then fill in the CRUD actions in your controllers/todo_controller.js to interact with your Mongoose Todo Model.

Warning: Mongoose is Asynchronous, so we'll need to use callbacks to wait for data to save.

Bonus

Use Mongoose Validations to ensure that only valid TODOs are saved.


Licensing

  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 [email protected].

mongo-todo-list's People

Contributors

jeremiahalex avatar nickangtc avatar primaulia avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

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.