Skip to content

Latest commit

 

History

History
78 lines (50 loc) · 1.93 KB

README.md

File metadata and controls

78 lines (50 loc) · 1.93 KB

Angular generic API service

Angular project for a generic API service that uses class-transformer.

The dependency packages for the demo components are:

Check out this blog post for more details.

DEMO

Get the code

Use one of the methods given below to get the project source code on your local machine.

Clone

SSH:

git clone git@github.com:peterrhodesdev/angular-generic-api-service.git

HTTPS:

git clone https://github.com/peterrhodesdev/angular-generic-api-service.git

GitHub CLI:

gh repo clone peterrhodesdev/angular-generic-api-service

Fork and clone

gh repo fork peterrhodesdev/angular-generic-api-service --clone=true

Add a remote + pull

mkdir angular-generic-api-service
cd angular-generic-api-service
git init
git remote add angular-generic-api-service git@github.com:peterrhodesdev/angular-generic-api-service.git
git pull angular-generic-api-service main

Install dependencies

In the project root directory run

npm install

Run

Start up a development server by running the following command in the project root directory

ng serve

Once the project has compiled successfully, open a web browser and navigate to http://localhost:4200/.

These two steps can be combined by running ng serve -o, which will open the app automatically in your default browser.

To stop the app, go back to the terminal window and press ctrl + C.

Test

Run ng test to execute the unit tests via Karma.