-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca9868f
commit 42604f4
Showing
114 changed files
with
10,553 additions
and
1,541 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,29 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
# Set default all file | ||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
# Set default *.md file | ||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false | ||
|
||
# Set default *ts, json, js file | ||
[*.{ts,json,js}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# Set default *html file | ||
[*.html] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.{scss,sass}] | ||
indent_style = space | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Create image based on the official Node 6 image from dockerhub | ||
FROM node:6 | ||
|
||
# Create a directory where our app will be placed | ||
RUN mkdir -p /usr/src/app | ||
|
||
# Change directory so that our commands run inside this new directory | ||
WORKDIR /usr/src/app | ||
|
||
# Copy dependency definitions | ||
COPY package.json /usr/src/app | ||
|
||
# Install dependecies | ||
RUN npm install | ||
|
||
# Get all the code needed to run the app | ||
COPY . /usr/src/app | ||
|
||
# Expose the port the app runs in | ||
EXPOSE 4200 | ||
|
||
# Serve the app | ||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,62 @@ | ||
# PauProject | ||
# Angular 2 Project - Pau Project | ||
13 May 2018 | ||
|
||
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.4. | ||
This is pau project | ||
|
||
## Development server | ||
Bellow is description about project and way to you get and run source code. | ||
|
||
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. | ||
## ENVIRONMENTS | ||
|
||
## Code scaffolding | ||
* Git. | ||
* Using ubuntu 16.04 OS. | ||
* Docker. | ||
|
||
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. | ||
## TECHNOLOGY | ||
|
||
## Build | ||
* HTML5, CSS3. | ||
* TypeScript. | ||
* Angular 4.3. | ||
|
||
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build. | ||
## INSTALLATION | ||
|
||
## Running unit tests | ||
Open your terminal and run this commands: | ||
`$ sudo apt-get update` | ||
|
||
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). | ||
`$ sudo apt-get install git` | ||
|
||
## Running end-to-end tests | ||
## USAGE | ||
### 1. Docker | ||
|
||
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). | ||
- You can install Docker follow this [guide](https://docs.docker.com/engine/installation/). | ||
|
||
## Further help | ||
### 2. Build Angular image | ||
|
||
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). | ||
- Build your first Docpad image using Docker. | ||
|
||
``` | ||
docker build -t angular-docker . | ||
``` | ||
|
||
**NOTE**: | ||
|
||
- You can change your image by replacing `angular-docker` by any name you want. | ||
|
||
- This command only need to run once in the beginning. | ||
|
||
### 3. Angular Plugin | ||
|
||
``` | ||
docker run -it --rm -w /home/app -v $(pwd):/home/app angular-docker npm install | ||
``` | ||
|
||
### 4. Angular Run | ||
|
||
``` | ||
docker run -it --rm -e HOSTNAME=0.0.0.0 -p 4200:4200 -w /home/app -v $(pwd):/home/app angular-docker | ||
``` | ||
|
||
Now you can go to http://localhost:4200 to see web app. | ||
|
||
## LICENSE | ||
|
||
Copyright © 2018+ All rights reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
"version": 1, | ||
"newProjectRoot": "projects", | ||
"projects": { | ||
"pau-project": { | ||
"root": "", | ||
"sourceRoot": "src", | ||
"projectType": "application", | ||
"architect": { | ||
"build": { | ||
"builder": "@angular-devkit/build-angular:browser", | ||
"options": { | ||
"outputPath": "dist", | ||
"index": "src/index.html", | ||
"main": "src/main.ts", | ||
"tsConfig": "src/tsconfig.app.json", | ||
"polyfills": "src/polyfills.ts", | ||
"assets": [ | ||
"src/assets", | ||
"src/favicon.ico" | ||
], | ||
"styles": [ | ||
"src/styles.css" | ||
], | ||
"scripts": [] | ||
}, | ||
"configurations": { | ||
"production": { | ||
"optimization": true, | ||
"outputHashing": "all", | ||
"sourceMap": false, | ||
"extractCss": true, | ||
"namedChunks": false, | ||
"aot": true, | ||
"extractLicenses": true, | ||
"vendorChunk": false, | ||
"buildOptimizer": true, | ||
"fileReplacements": [ | ||
{ | ||
"replace": "src/environments/environment.ts", | ||
"with": "src/environments/environment.prod.ts" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"serve": { | ||
"builder": "@angular-devkit/build-angular:dev-server", | ||
"options": { | ||
"browserTarget": "pau-project:build" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"browserTarget": "pau-project:build:production" | ||
} | ||
} | ||
}, | ||
"extract-i18n": { | ||
"builder": "@angular-devkit/build-angular:extract-i18n", | ||
"options": { | ||
"browserTarget": "pau-project:build" | ||
} | ||
}, | ||
"test": { | ||
"builder": "@angular-devkit/build-angular:karma", | ||
"options": { | ||
"main": "src/test.ts", | ||
"karmaConfig": "./karma.conf.js", | ||
"polyfills": "src/polyfills.ts", | ||
"tsConfig": "src/tsconfig.spec.json", | ||
"scripts": [], | ||
"styles": [ | ||
"src/styles.css" | ||
], | ||
"assets": [ | ||
"src/assets", | ||
"src/favicon.ico" | ||
] | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": [ | ||
"src/tsconfig.app.json", | ||
"src/tsconfig.spec.json" | ||
], | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"pau-project-e2e": { | ||
"root": "", | ||
"sourceRoot": "", | ||
"projectType": "application", | ||
"architect": { | ||
"e2e": { | ||
"builder": "@angular-devkit/build-angular:protractor", | ||
"options": { | ||
"protractorConfig": "./protractor.conf.js", | ||
"devServerTarget": "pau-project:serve" | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": [ | ||
"e2e/tsconfig.e2e.json" | ||
], | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"defaultProject": "pau-project", | ||
"schematics": { | ||
"@schematics/angular:component": { | ||
"prefix": "", | ||
"styleext": "css", | ||
"changeDetection": "OnPush" | ||
}, | ||
"@schematics/angular:directive": { | ||
"prefix": "" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.