All Projects → german-alvarez-dev → express-generator

german-alvarez-dev / express-generator

Licence: other
Boilerplate | ExpressJS server

Programming Languages

javascript
184084 projects - #8 most used programming language
Handlebars
879 projects
SCSS
7915 projects

Projects that are alternatives of or similar to express-generator

init-typescript-app
Initialize clean TypeScript setup by running single command. Optional package publication to npm.
Stars: ✭ 20 (-42.86%)
Mutual labels:  bolierplate
react-native-basekit
Basic setup for react-native projects using react-native , redux, redux-sagas, react-navigation
Stars: ✭ 16 (-54.29%)
Mutual labels:  bolierplate
next.js-boilerplate
next.js bolierplate, next.js 的开发模板
Stars: ✭ 28 (-20%)
Mutual labels:  bolierplate
go-api-boilerplate
Boilerplate for Golang API
Stars: ✭ 153 (+337.14%)
Mutual labels:  bolierplate
webpack4-boilerplate
webpack4打包模板
Stars: ✭ 36 (+2.86%)
Mutual labels:  bolierplate

ExpressJS server boilerplate

ExpressJS


ExpressJS backend boilerplate including:

  • Views Template: Handlebars
  • CSS Engine: SCSS - Node-sass-middleware
  • ODM: Mongoose
  • UI Framework: Bootstrap

Prepopulated with Express middlewares:

  • Logger: morgan
  • HTTP POST Params: body-parser
  • Cookies: cookie-parser

Facilities:

  • Gitignore file
  • Seeds file
  • Error handling

Directory structure


express-generator/
├── app.js
├── package.json
├── .gitignoe
├── routes
│   │── index.js
│   └── base.routes.js
├── models
│   └── user.model.js
├── utils
│   └── index.js
├── middlewares
│   └── index.js
├── views
│   │── layout.hbs
│   │── errors
│   │   │── not-found.hbs
│   │   └── server-error.hbs
│   │── pages
│   │   └── index.hbs
│   └── partials
├── public
│   ├── img
│   ├── js
│   │   └── script.js
│   └── css
│       └── styles.sass
├── config
│   │── db.config.js
│   │── debug.config.js
│   │── hbs.config.js
│   │── locals.config.js
│   │── middleware.config.js
│   │── sass.config.js
│   └── views.config.js
└── bin
    ├── seeds.js
    └── www

Install

  • Run npm i on the root directory

Run

  • Create a .env file on the root directory to link the MongoDB URI (MONGODB_URI) and port (PORT)
  • Run npm run dev command on the root directory
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].