This project was generated with Angular CLI version 12.2.1.
It s a simple demo application allowing the user to manage tasks and users.
It is a Single-Page App (SPA) written in standard web technologies HTML5, SCSS and TypeScript. It leverages the popular Angular framework and Angular Material for material design components and JSON Server (Fake API)
-
Ensure you have the following installed in your system:
-
Install angular-cli
Locally
npm install @angular/[email protected]
Globally
npm install -g @angular/[email protected]
-
Clone the project locally
git clone https://github.com/anwiednn/angular-app.git
-
cd
into project directory and make sure you are on the main branchcd angular-app/angular-app
-
Install the dependencies
npm install
-
To preview the app, run the following commands and navigate to
http://localhost:4200/
JSON Server (Fake API) will run on
http://localhost:3000/
npm run json-server
In new terminal window and same directory as above
angular-app/angular-app
ng serve
-
Ensure you have the following installed in your system:
-
Pull the docker image from
docker pull anwiednn/angular-app:latest
-
Run docker image
docker run --name angular-app --rm -p 8080:80 anwiednn/angular-app
-
Access the webapp on
http://localhost:8080
in your browserhttp://localhost:8080
This application served was build using
ng build
. This is a production version of the application. -
Usage of JSON-Server (Fake API)
The fake API only provides limited CRUD abilities and reduces application performances due latency of fake API used.
Please see
current limitations here
Please see
fake API used here
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.
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.