Sample Angular 2 application
MIT License
Angular 2 sample application Using:
https://booklibraryangular.firebaseapp.com
# clone the repository
$ git clone https://github.com/alanmacgowan/BookLibrary.Angular.git myapp
# change directory to your app
$ cd myapp
# install dependencies with npm
$ npm install
# build the app and start the server
$ npm start
This will open a browser in http://localhost:8080/ and start the Express server on http://localhost:3000/.
After installing all dependencies with npm you can start the server:
npm start
It will start a local server using webpack-dev-server
which will watch, build (in-memory), and reload automatically, you don't need to reload the page.
To build the application :
npm run build
webpack will bundle the application and all necessary files in the /dist
folder that you can deploy to the server.
The directory structure looks like:
.
├── app
│ ├── config
│ │ ├── helpers.js
│ │ ├── webpack.aot.js
│ │ ├── webpack.dev.js
│ │ └── webpack.prod.js
│ ├── dist
│ ├── node_modules
│ ├── src
│ │ ├── client
│ │ │ ├── app
│ │ │ │ └── author
│ │ │ │ └── book
│ │ │ │ ...
│ │ │ ├── images
│ │ │ ├── script
│ │ │ ├── styles
│ │ │ ├── index.html
│ │ │ ├── main.aot.ts
│ │ │ ├── main.ts
│ │ │ ├── polyfills.ts
│ │ │ └── vendor.ts
│ │ └── server