https://github.com/ravening/angularspringboot
https://github.com/ravening/angularspringboot
angularjs csv java junit-test spring spring-boot
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ravening/angularspringboot
- Owner: ravening
- Created: 2018-12-07T22:11:42.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-08T10:42:25.000Z (about 7 years ago)
- Last Synced: 2025-02-01T18:44:58.963Z (11 months ago)
- Topics: angularjs, csv, java, junit-test, spring, spring-boot
- Language: Java
- Size: 27.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AngularSpringBoot
This is a java project which is developed using Angular for the front end and Spring boot for the backend
Prerequisited to run the project
1. Java 8
2.Install either spring tool suites IDE or install spring tools suite plugin for Eclipse or any other suitable IDE
Once the above requirement is met, you can download this repository and import it using
file -> import -> existing maven project
To run the proj
After inporting the project, right click on the project , select "Run as" and click on "Spring boot"
Thats it and you are all set to go.
Open the following link in the browser
http://localhost:8080/
You can do following things
Part 1
1. You can upload the csv by clicking on the "Browse" button. This will parse the contents of the csv file and display the result in a table format
2. To sort the result, click on "Sort" button
Part 2:
Parsing csv and xml files.
To parse the csv files navigate to "http://localhost:8080/backend-csv" .
Click on browse button to select the csv file and submit it.
After parsing the csv data it will display the result in table
To parse the xml files, navigate to "http://localhost:8080/backend-xml"
Click on browse button to select the csv file and submit it.
After parsing the xml data it will display the result in table
Test cases:
The Junit test cases are located in
src/test/java/assignment/MainActivityTest.java
Prerequisites:
To run test cases you should have junit plugin installed in the IDE you are using
To run the test:
Right click on the MainActivityTest.java -> select "Run as" -> "Junit Test"
The results will be displayed in the IDE itself