Skip to content

Angular Express boilerplate to start a Bootstrap only website without AngularJS.

License

Notifications You must be signed in to change notification settings

ngx-boilerplates/bootstrap-only

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

angular-express-header

Angular Express boilerplate to start a Bootstrap only website without AngularJS.

Features:

How to get started

Ensure the Angular Express CLI tool is installed:

$ npm install -g ngx-cli

Create a new project directory:

$ mkdir project
$ cd project

Initialize the boilerplate:

$ ngx init -b bootstrap-only

Install third-party dependencies:

$ jspm install
$ npm install

Finally start the Angular Express server:

$ npm start

and navigate to: <ip>:9000 in the browser.

How the configuration works

The configuration is stored in configuration files in the /config directory.

It can be overriden and extended using the node-config rules:

# Default configuration
/config/default.js

# Production configuration
/config/production.js

# Local configuration
/config/local.js

See configuration files for more information.

How to start the server

Start the server:

# Uses NODE_ENV of your environment
$ npm start

Start the server in development mode:

# Uses NODE_ENV=development
$ npm run development-server

Start the server in production mode:

# Update src/build.js
$ npm run build

# Start production server
# Uses NODE_ENV=production
$ npm run production-server

How to compile to a static application

From the root of the project, run:

$ npm run compile

to compile static HTML, CSS and JavaScript in dist.

How to use livereload during development

Ensure you have BrowserSync installed:

$ npm install -g browser-sync

From the root of the project, run:

$ browser-sync start --proxy localhost:9000 --files "src/**/*"

and navigate your browser to the BrowserSync url:

 --------------------------------------
       Local: http://localhost:3000
 --------------------------------------
          UI: http://localhost:3001
 --------------------------------------

How to run unit tests

Make sure the Karma CLI is installed:

$ npm install -g karma-cli

To run the tests:

$ karma start

License

MIT

Change log

v0.1.0

  • Initial version

About

Angular Express boilerplate to start a Bootstrap only website without AngularJS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published