Ethio-locations is a web-based app under construction. The application is developed using JavaScript technologies. This project was generated with Angular CLI version 1.7.3.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source code.
Follow the instructions on @asymmetrik/ngx-leaflet for further development of this project.
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 ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng 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.
Please install and setup Docker on your system and check for the docker version:
$ docker -v
Once you have installed docker in your system, go to your project dir & build and tag the Docker image by running the following command:
$ docker build -t ethio-locations .
Check the images are created successfully
$ docker images
Then, to spin up the ethio-locations container once the build is done, run the following command
$ docker run -it -v ${PWD}:/usr/src/app -v /usr/src/app/node_modules -p
4200:4200 --rm ethio-locations
Check the ethio-location docker is running successfully using the docker process monitor
$ docker ps -a
Open your browser to localhost and you should see the app running smoothly, make some changes to see how it reloads in real time. You can use the -d flag to run the container in the background:
$ docker run -d -v ${PWD}:/usr/src/app -v /usr/src/app/node_modules -p
4200:4200 --rm ethio-locations
To run the unit and e2e tests: get the container ID and use the docker command, and replace $CONTAINER-ID
$ docker exec -it $CONTAINER-ID ng test --watch=false
$ ng e2e
To stop the container, get the container ID and use the docker command, and replace $CONTAINER-ID
$ docker ps -a
$ docker stop $CONTAINER-ID
To get some details check out this blog