Giter Site home page Giter Site logo

mongoose-starter's Introduction

Express Library!

Task

For the weekend, we'd like you to build an application that has full CRUD on books. You should use an array as your way of storing book objects and each book should have a title, author and year. You should be using RESTful routing and ensure that you have a catch-all route for 404 errors.

Getting Started

  • make a folder for your project
  • create an app.js file
  • add a package json using the npm init command
  • create a .gitignore file and make sure node_modules are not tracked by git
  • initialize a git repository and make your first commit
  • make sure you have a views folder for your application
  • Start in your app.js by including the proper dependencies and middleware

Bonus

  • if you examine all of your views, you will see that you are repeating yourself, research what partials are in express and how to include them - use partials to refactor and clean up your code.
  • add an additional route that allows the user to sort all of the books alphabetically

Super Bonus

Use AJAX and don't do a full page refresh when adding, updating or deleting books. Research res.json so that you can respond using json instead of ejs. Once you are rendering JSON, use AJAX to communicate with your server.

mongoose-starter's People

Contributors

elie avatar

Watchers

James Cloos avatar Micah 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.