Skip to content

vardhan3236/electricity_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electricity Board Web Application:

In developing the web application for the Electricity Board, I strategically employed a microservices architecture, consisting of three key components: the API Gateway, Charting Service, and Connection Service. The Connection Service played a pivotal role, featuring APIs for initial table retrieval in the UI, CRUD operations for table edits, and a count API to track the number of approved or pending requests per month. To facilitate seamless communication between services, the Charting Service utilized a feign client to interact with the count API within the Connection Service. The API Gateway, functioning as a central hub, established a common port through Spring Cloud Gateway, enabling Angular to communicate with both the Connection and Charting Services efficiently.

On the frontend, the UI was crafted using Angular, incorporating all the specified features outlined in the problem statement. The home page seamlessly interacted with the Connection Service through the API Gateway, fetching table data and enabling CRUD operations. Additionally, the chart tab in the navigation leveraged the API Gateway to call the Charting Service, which, in turn, communicated with the count API in the Connection Service. The result was a visually compelling presentation of connection request counts through a line chart, implemented using the chart.js library. This intuitive design featured separate tabs for approved and pending statuses, enhancing the user experience and providing valuable insights into application trends.

Steps for installation:

  1. Download the Zip file,
  2. Open the backend folder in any editor (IntelliJ preferred),
  3. Open the Front folder in any editor (VSCode preferred),
  4. Build the backend project by doing right click and build and then run all the services: Api Gateway, Connection Service and Chart Service by going to the springbootApplication.java file and doing right click and then running,
  5. Do Post: http://localhost:8080/api/excel/import on Postman to fill up the database with the excel data,
  6. Excel data is in the static/excel folder of the connection service,
  7. Do npm install in the VSCode after navigating to the src/app folder,
  8. Then do, npm start: Front end will start running on localhost:4200.
  9. The UI will show up 4200 port.

Front Page of Displaying all data in table

image

image

Using Search Filter by Application Id

image

Editing a Row (not allowed to change the Date of Application, Govt ID Type, and ID Number)

image

Data Validation that the row should not exceed 200 KV while Editing

image

Deleting a Row

image

Adding a Row:

image

Line Chart for Approved Status for Default:

image

Line Chart for Pending status after clicking:

image

About

Electricity App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages