Angular 1.5.8 project - Start From Scratch
- Install Node.js
Go to Node website
- Install http-server
A command-line http server
$ npm install -g http-server
- Install json-server
Full fake REST API
$ npm install -g json-server
-
Clone or Download the project
-
Open first command prompt
$ cd my-project\fake_db
$ json-server --watch db.json
- Open second command prompt
$ cd my-project
$ http-server
- Go to localhost
- made following John Papa Style Guide
- directive, factory and controller
- $http
- include 3rd-party JS library
- Normalize.css
- Bootstrap 3
- NProgress
- Angular ui-router
- Angular translate
- NO unit/integration test has been developed
This is just a simple example, I hope this will help you to understand better Angular 1.