This project is a workshop to create a development frabrique
This project was generated with Angular CLI version 1.6.3.
Requirements
- docker
- docker-compose
Create docker-composer.yml
version: '3'
services:
nginx-proxy:
image: norsys/fabriquedev-nginx-proxy:latest
restart: always
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
fabriquedev:
image: norsys/fabriquedev:latest
restart: always
environment:
- VIRTUAL_HOST=fab.snow.ci
# Put your tools below
Start fabrique
$ docker-compose up -d
Add 127.0.0.1 fab.snow.ci
to /etc/hosts
$ sudo echo "127.0.0.1 fab.snow.ci" >> /etc/hosts
Go to http://localhost
Replace <your-security-group>
by a valid security group with port 80 and 22 allowed
$ aws ec2 run-instances \
--image-id ami-4262d53f \
--count 1 \
--instance-type m5.xlarge \
--user-data https://raw.githubusercontent.com/norsys/fabriqueDev/master/aws/userdata.yml \
--security-groups <your-security-group> \
--block-device-mappings https://raw.githubusercontent.com/norsys/fabriqueDev/master/aws/mapping.json
Access to fabrique with http://<public-ip>
Connect on your instance with ssh:
- user
snow
- password
camp
Run npm run start
for a start project on local. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
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
.
Run npm run build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
Run npm run test
to execute the unit tests via Karma.
Run npm run e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
Requirements
- docker
- docker-compose
make build
make start
make bash # Use to launch npm and ng commands
make stop
make remove
make aws-run-instances \
AWS_ACCESS_KEY_ID=<your-access-key-id> \
AWS_SECRET_ACCESS_KEY=<your-secret-access-key> \
AWS_DEFAULT_REGION=<your-default-region> \
SECURITY_GROUPS=<your-default-region>
Security group must allowed port 80 and 22
Connect with ssh:
- user
snow
- password
camp