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
- Familiar with pug syntax and how to use it in node. js, learn about the pros and cons of Pug and how to choose
- Initially mastered the use of Express framework, how to handle Routing and middleware
- Master how mongoose connects to the database in node. js, and the use of schema, model, and entity
- Flow of data transfer and view presentation in front and back
- Learned to "hash + salt" The password using Bcryptjs (a decryption module of node. js)
- User identification and persistence with sessions and cookies
Todo
- User Login registration not done form check and so on
- Comprehensive Promise of
- Upgrade to Ejs template
- The function of movie comment is too simplified
- Add Personal Center
- Forward and backward requests use Ajax asynchronously to get
- 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