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.
Use one of the methods given below to get the project source code on your local machine.
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
gh repo fork peterrhodesdev/angular-generic-api-service --clone=true
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
In the project root directory run
npm install
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
.
Run ng test
to execute the unit tests via Karma.