Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A simple mvc boilerplate for express.js (gulp + expressjs + nodemon + browser-sync)

License

NotificationsYou must be signed in to change notification settings

oguzhanoya/express-mvc-boilerplate

Repository files navigation

License: MITBuild Status

A simple mvc boilerplate for express.js (gulp + expressjs + nodemon + browser-sync)

Related modules

  • express - web application framework for node
  • pug - template engine
  • stylus - pre-processor CSS
  • mongoose - nodejs orm for mongodb
  • bower - a package manager for the web
  • gulp - automate workflow

Prerequisites

  • Node.jshttp://nodejs.org
  • MongoDBbrew install mongodb

Project Structure

.├── app/│   └── controllers# contains controller files│   └── models# contains model files│   └── views# contains express view (pug) files│   └── routes.js# routes config file├── config/│   ├── index.js# environment config file│   └── db.js# db config├── public/# contains static assets│   ├── components# bower components folder│   │   └── ...│   ├── favicon# favicon folder│   ├── fonts# contains font files│   ├── css# all files will generate from gulp│   ├── styl# contains style sheets (stylus)│   ├── js# contains js files│   └── img# contains image files├── test/│   └── spec.js# unit & func tests├── .bowerrc# bower config├── .bower.json# bower dependencies├── .Procfile# process file for heroku implementation├── .gitignore# specifies intentionally untracked files to ignore├── .editorconfig.js# editor config├── .gulpfile.js# gulp config├── .eslintrc.yml# eslint config├── .eslintignore# eslint ignore specific files and directories config file├── .travis.yml# travis ci config├── app.js# app setup file└── package.json# build scripts and dependencies

Getting Started

The easiest way to get started is to clone the repository:

# Get the latest snapshot$ git clone https://github.com/oguzhanoya/express-mvc-boilerplate.git myproject$cd myproject# Install dependencies$ npm install$ bower install$ node app.js

Development

npm run dev

Your app should now be running onlocalhost:7000.

Test

npm test

Lint

npm run lint

Docker Support

  • Dockerhttps://docs.docker.com/engine/installation/
# Build the projectdocker-compose build  # Start the applicationdocker-compose up

Deploy

Make sure you have theHeroku Toolbelt installed.

heroku creategit push heroku masterheroku open

License

MIT

About

A simple mvc boilerplate for express.js (gulp + expressjs + nodemon + browser-sync)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp