Skip to content

reetasalian/angular-tariff-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Tariff List Angular Project

This is a Angular project that displays a list of tariffs for a company. The project uses JSON-server to run the API, npm run start to start the application, and npm run test to run the unit test cases.

Navigate to the demo-tariff-list directory and execute the following commands.

Installation

  1. Clone the repository to your local machine.

  2. Open a terminal window and navigate to the project directory.

  3. Run npm install to install the project dependencies.

Running the API

  1. Open a terminal window and navigate to the project directory.

  2. Run npm run api to start the JSON-server.

The API will be available at http://localhost:3000/tariffs.

Running the Application

  1. Open a terminal window and navigate to the project directory.

  2. Run npm run start to start the Angular application.

The application will be available at http://localhost:4200.

Running the Unit Tests

  1. Open a terminal window and navigate to the project directory.

  2. Run npm run test to run the unit tests.

The test results will be displayed in the terminal window.

Project Structure

  • The src/app directory contains the Angular components, services, and models used in the project.

  • The src/assets directory contains the mock tariff data in JSON format utilized in the project.

  • The src/styles directory contains the imported CSS styles from Bootstrap, angular material etc. used in the project.

  • The tariffData.json file contains the data for the tariffs API.

Releases

No releases published