This project was generated using Angular CLI version 19.1.2.
To start a local development server, run:
ng serve
Once the server is running, open your browser and navigate to http://localhost:4200/
. The application will automatically reload whenever you modify any of the source files.
First, install json-server
npm install -g json-server@0.17.4 # NPM
yarn global add json-server@0.17.4 # Yarn
pnpm add -g json-server@0.17.4 # PNPM
then run it with
json-server --watch db.json
The database for this project(db.json) can be found in the 'json-server' folder of the project root.
By default, json-server runs on port 3000. Should you need to run on a different port, you can do so using the command like this:
json-server --watch db.json --port 3004
For more details, check out json-server documentation
To build the project run:
ng build
This will compile your project and store the build artifacts in the dist/
directory. By default, the production build optimizes your application for performance and speed.
To execute unit tests with the Karma test runner, use the following command:
ng test