/angularjs-webpack-express-starter

A light Webpack, Express, AngularJS and ES6 for backend and front end development

Primary LanguageJavaScript

angularjs-webpack-express-starter

This repo is under maintenance

A Starter for AngularJS using Webpack, Express and ES6

This repo only support AngularJS (angular 1.x) and Webpack 2.x

  • Simple and clean
  • Light webpack configuration
  • ES6 support with babel
  • Express server
  • Easy to adopt

Installation

# clone repo
$ git clone https://github.com/henryckh/angularjs-webpack-express-starter.git my-app
$ cd my-app

# install dependencies
$ npm install

# start server
$ npm start

Open the website http://localhost:3000 in your browser

How to use

Use the following command to generate new bundle.js

$ webpack

All style from app.css and agularjs will put all into bundle.js

Development

You could use 'nodemon server.js' to listen on file change,

$ nodemon server.js

followed by 'webpack for file change.

$ webapck

Support for webpack-dev-server in future if needed

Error handle

If your Node.js version is too old, try to install node n

License

MIT