Skip to content

matthiasbruns/node-express4-handlebars-mongoose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-express4-handlebars-mongoose

About

This project provides a simple demo application, which uses Node.js, Express4, Handlebars and Mongoose.

Usage

You can download or clone this repository for your project.

Structure

  • assets/
    • stores frontend files, which will be compiled
    • css/ - contains SCSS files
    • js/ - will be bundles with browserify
  • bin/
    • build_css - uses node-sass to build scss files
    • www - holds server code
  • config/
    • default.json - stores development configuration
    • production.json - stores production configuration
  • controller/
    • handles routing
    • auth - routes for authentication
    • helpers - shared middleware functions
    • index - sets up the routes
  • i18n/
    • localization data
    • can be also used in handlebars via the __ helper
  • models/
    • mongoose Schema models
    • index - connects to database
  • public/
    • static and compiled frontend files
  • services/
    • business logic can be added here
    • utility functions like config reading and logging
  • views/
    • handlebars views
    • layouts/ - folder for master layouts
    • partials/ - reusable handlebars templates

The MIT License (MIT)

Copyright (c) 2016 Matthias Bruns

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

NPM based css & javascript building. Full stack demo code for Node.js, Express 4, mongoose and handlebars.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published