A web application for new student registration and existing student data retrieval.
' server ' directory - Contains the spring boot backend project
' front-end ' directiory - Contains the react frontend project
The project is developed using spring boot as the backend service, react.js as the frontend technology and mongodb as the database.
In order to run the project, the user needs to have mongodb installed locally.
Run mongodb ( Windows )
mongod
or
Run mongodb ( Linux )
sudo systemctl start mongod
Run Springboot App - from 'server' directory
mvn clean spring-boot:run
Run React App - from 'front-end' directory
npm install
npm start
Front End URL
http://localhost:3000/
Back End URL
http://localhost:8080/
URL : /all
method : GET
success response :
code : 200
content-type : application/json
content :
[
{
"id": 1,
"name": "John Doe",
"dateOfBirth": "08/07/1991",
"dobDay": "08",
"dobMonth": "07",
"dobYear": "2014",
"grade": "II",
"division": "B",
"gender": "Male",
"rollNumber": "R-001"
},
]
URL : /create
method:POST
content-type : application/json
request body :
{
"name" :" John Doe ",
"dobDay":"08",
"dobMonth":"07",
"dobYear":"2014",
"grade" : "II",
"division":"B",
"gender":"Male"
}
success response :
code : 200
content-type : text/plain
content : New Student 'John Doe' has been Added