- Gruntfile
- MongoDB database
- Common pages
- main page
- login
- logout
- register
- dashboard
- user settings
- Bootstrap theme
- Session
- Auth system using PassportJS
- File uploads
- Image processing using ImageMagick
- Send email
- Form ajax validation
- Client-side templating using Jade
Install dependencies using Homebrew:
- NodeJS (
brew install node010
) - MongoDB (
brew install mongodb24
) - ImageMagick (
brew install imagemagick
)
MongoDB note: Create a bash script mongod.sh
in directory included in PATH (e.g /usr/local/bin), and specify how mongod is started. E.g:
#!/bin/bash
mongod --config ~/Applications/etc/mongod.conf
Setup project:
- Install grunt-cli & bower globally (
npm install -g grunt-cli bower
) - Clone repo (
git clone https://github.com/azwan082/nodejs_web_app.git
) - Rename config.json.example to config.json and configure the values
- Install npm dependencies (
npm install
) - Install bower dependencies (
bower install
) - Start server using grunt (
grunt
)