Skip to content

nelsonlopezjimenez/Lab3.1-todo-list-api-express-mongo

Repository files navigation

Express Server Todo list

Combination of Colt Steele and Robert Wieruch online tutorials

Step One

  1. run "npm install"
  2. Make sure that mongo server is running and port 27017 of localhost is responding appropriately.
  3. run "node index.js"
  4. Using curl/Postman add/modify/delete items in the todo list.
  5. If you do not have Mongo Extension in VS Code, please add it: MongoDB for VS Code

Assign to student Lab 3.1

  1. Refactor the code in index.js file so the routes, the models, and other code is located in different folders. Use the "recipes-api" app as a reference, and/or run "npx express-generator" following the instructions in expressjs.com/en/starter/generator.html

File structures

recipe-w-message app:

  |_ package.json
  |_ .babelrc
  |_ .env
  |_ .gitignore
  |_ src
    |_ index.js
    |_ models
    |        |_ index.js
    |        |_ recipe.js
    |        |_ users.js message.js
    |_ routes
    |        |_ index.js
    |        |_ recipe.js 
    |        |_ users.js messages.jd session.js
    |_ node_modules
    |_ README.md


todo-list app
     |_ package.json
     |_ index.js
     |_ node_modules
     |_ README.md
     |_ .gitignore
     |_ .env

About

Todo list using express, mongoDb. Title, isChecked, and date

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published