js代写 javascript代写 html代写 js程序代写

nodejs代写 express代写 js代写 JavaScript代写

 3/23/2020 CSCI-UA.0480 - Homework

Homework #5

Anonymous Course Reviews (Sessions and Storing Data) - Wednesday, April 1st, by 11PM

Overview Goals

This assignment will cover storing and retrieving data in a database and in an in-memory session store. You will:

use the commandline mongodb client to create a database, collection and several documents

use mongoose to read and write data to and from mongodb from an express application

use pre-built session middleware to read and write data to and from an in-memory session store on a per session basis

Description

You'll be creating a site where users can anonymously post reviews for courses. By the end of this project... you should be familiar with:

writing middleware

some basic read and write operations with mongodb...

integrating mongodb with an Express web application using Mongoose (See the example interaction at the end of this page).

You'll create a single express application with the following directory layout (when you're done with all of the directions, the folder hierarchy should match the look the same as the one listed below):

/ (project root)

     package.json

     node_modules

     .gitignore

     .eslintrc.js

     config.json

     /src

         app.js

         public

img css

your css file

         views

             layout.hbs

any other views

Your application will support the following routes:

GET / - show all course reviews

GET /reviews/add - show the add review form POST /reviews/add - process a new review

                       https://cs.nyu.edu/courses/spring20/CSCI-UA.0480-008/_site/homework/06.html 1/12

京ICP备2025144562号-1
微信
程序代写,编程代写
使用微信扫一扫关注
在线客服
欢迎在线资讯
联系时间: 全天