Movie sites built based on node. js + Express + MongoDB + Bootstrap

Source: Internet
Author: User
Tags mongodb driver git clone


Movie website


?? Github:https://github.com/bxm0927/movie-website



This project is a movie site built based on node. js + Express + MongoDB + Bootstrap.



Main function Modules:


    • Phase one: Front desk movie display page, movie detail page, background movie Management Center (movie entry, movie modification)
    • Issue two: User Login registration logout function, user identification and persistence, background User Management Center (user input, user modification), movie review


<!--more--



Picture Preview Technology Stack


Front-end


    • HTML/CSS/JS: Unchanging three-piece set
    • Es6:ecmascript the next generation of grammar, and this is the future trend
    • Monment.js: Time Date format plugin
    • jquery: The AJAX approach used to handle asynchronous requests and DOM operations primarily with jquery
    • Bootstrap: page UI framework, natural responsive, but style rotten street ...


"Back End"


    • Pug:pug (formerly Jade) is a high-performance template engine used to generate HTML
    • node. JS: Entire post driven by node. js driver; Install resource files with NPM
    • Express: A Web development framework based on the node. JS platform, consisting of routing and middleware


Database


    • MongoDB: NoSQL Database for data storage
    • Mongoose:Node.js's MongoDB driver package is the tool for fast MongoDB modeling


"Automated Build"


    • Gulp: Front-end automation build tool
    • JSHINT:JS Code Validation
Harvest
    1. Familiar with pug syntax and how to use it in node. js, learn about the pros and cons of Pug and how to choose
    2. Initially mastered the use of Express framework, how to handle Routing and middleware
    3. Master how mongoose connects to the database in node. js, and the use of schema, model, and entity
    4. Flow of data transfer and view presentation in front and back
    5. Learned to "hash + salt" The password using Bcryptjs (a decryption module of node. js)
    6. User identification and persistence with sessions and cookies
Todo
    1. User Login registration not done form check and so on
    2. Comprehensive Promise of
    3. Upgrade to Ejs template
    4. The function of movie comment is too simplified
    5. Add Personal Center
    6. Forward and backward requests use Ajax asynchronously to get
    7. There's a lot more ...
Build Setup
 
 
# clone the repo into your disk.
$ git clone https://github.com/bxm0927/movie-website.git

# install dependencies
$ npm install

# run
$ npm start

# visit
$ http://localhost:3000/
License


The code is available under the MIT license.


Thanks


@Scott



Movie sites built based on node. js + Express + MongoDB + Bootstrap


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.