Lightweight Bootstrap NodeJS Apps Build Using ExpressJS 4, MongoDB/Mongoose, Authentication with Passport.js, Jade and GruntJS as Task Automation
- Node.js - Download and Install Node.js with N (Node Version Manager) - Simple module to manage multiple active node.js versions. NOTE: This project uses node v0.10.28.
- MongoDB - Download and Install MongoDB - Make sure it's running on the default port.
- NPM - Node.js package manager, should be installed when you install node.js. NPM (Node Package Manager) will look at the package.json file in the root of the project and download all of the necessary dependencies and put them in a folder called
node_modules
- Genghis - The single-file MongoDB admin app
- Grunt - In one word: automation. The less work you have to do when performing repetitive tasks like minification, compilation, unit testing, linting, etc, the easier your job becomes. After you've configured it, a Grunt can do most of that mundane work for you—and your team—with basically zero effort.
NOTE: After installing Node.js and MongoDB server has running, then its time to running your server.
NOTE: Need installing grunt-cli -g. It refers to http://blog.csdn.net/lihongxun945/article/details/8895208 and http://www.gruntjs.org/.
NOTE:
Need installing plantomjs globally, because url-to-screenshot@0.9.1 is dependent on plantomjs.
You can install plantomjs via $ brew install plantomjs
on OSX.
If you use other *nix system,you can refer to HERE.
NOTE:
Need isntalling pkg-config
&& libvips
. They supports the package of sharp@0.4.1
running well. You can install them referring to HERE or Libvips Homepage.
$ npm install -g grunt-cli
$ git clone https://github.com/PaladinTyrion/theater-web.git
$ cd express4-bootstrap-starter
$ npm install
$ cp app/config/config.example.js app/config/config.js
$ grunt
Then visit http://localhost:3001/
- Express - Express is a minimal and flexible node.js web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications.
- Passport - Passport is authentication middleware for Node.js. Extremely flexible and modular, Passport can be unobtrusively dropped in to any Express-based web application. A comprehensive set of strategies support authentication using a username and password, Facebook, Twitter, and more.
- Mongoose - Elegant MongoDB object modeling for Node.JS. Mongoose provides a straight-forward, schema-based solution to modeling your application data and includes built-in type casting, validation, query building, business logic hooks and more, out of the box.
- LESS.JS - Less is a CSS pre-processor, meaning that it extends the CSS language, adding features that allow variables, mixins, functions and many other techniques that allow you to make CSS that is more maintainable, themable and extendable.
- Hostpage redirects to /hall/.
- Only item title contains "unity3d" can route to theater show.
- The Path public/screenshot/ must mkdir by user.
- None web based on HIGH-RENDER Technology such as WEBGL or Walled can be screenshoted.
- ALL *.unity3d puts into public/unity3d/.
-app/
|__config/
|__controllers/
|__helper
|__models/
|__mailer/
|__views/
|__routes
-public/
|__css (all files will generate from Grunt)
|__js
|__less
|__fonts
|__img
|__mustache (Template for items)
|__unity3d (.unity3d && std.xml)
|__screenhot (user mkdir)
|__tmp (user mkdir)
favicon.ico
-Grunfile.coffee
During install some of you may encounter some issues feel free to contact me @paladintyrion or submit issue. via the repository issue tracker or the links provided below. I am also available on twitter @paladintyrion.