This repository was created with the intention of simplifying the start up time of a AngularJS single page application running on NodeJS server.
Project was initialized through the use of Express Generator.
After running express generator, changes were made to implement Angular SPA, resulting in the following file structure:
app.js
routes/
--- api.js
bin/
--- www
public/
--- app/
------ app.js
------ controllers/
--------- controller.js
------ directives/
--------- directive.js
------ services/
--------- service.js
------ views/
--------- index.html
--------- templates/
------------ template.tpl.html
--- js/
------ custom.js
--- styles/
------ custom.css
--- vendor/
------ angular-1.6.6/
------ bootstrap-3.3.7/
package.json
- AngularJS 1.6.6
- Bootstrap 3.3.7
- Download repository to local machine
- Install dependences:
Run from project root directory
npm install
- Start Server:
Run from project root directory
npm run start
- Point browser to localhost:3000
- improve organization of vendor files
- add Grunt tasks for concatination/minification
- add unit testing