Skip to content

balakrishna501/education-site-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

education-site-api

education-site-api used to add, delete and register students and courses and vice versa

Getting Started

Please follow the below steps to setup and run education-site-api

Prerequisites

  • This project requires Java 8 need to be installed.
  • Install any Java IDE (Eclipse, STS, Intellij etc..) and ensure you are able to launch
  • Clone/Checkout the project from version control system (git) and follow below steps
$ cd education-site-api-main
$ mvn clean install 
$ mvn spring-boot:run -Dspring-boot.run.arguments="--spring.profiles.active=dev"
$ Open web browser & hit the swagger url: http://localhost:8080/edu/api/swagger-ui.html

Development Setup

  • Clone education-site-api project. (git clone )
  • Open eclipse and import this project under (Existing Maven project)

Tech stack

  • Java 8
  • Spring Boot: 2.1.7.RELEASE
  • H2 In-Memory DB
  • Swagger2 - For API Local Testing

Running the Unit tests

$ Open Terminal or commandLine window
$ cd <path/to/education-site-api>
$ mvn test -Dspring-boot.run.arguments="--spring.profiles.active=dev"

Testing API

  • Open http://localhost:8080/edu/api/swagger-ui.html
  • Click on addCourse/addStudent or any one of the endPoint.
  • Click on Try it out and fill the input payload as per the contract.
  • Finally Click on Excetue and ensure to see the 200 response with response message.
  • Also Open http://localhost:8080/edu/api/h2/ from web browser and click on Connect without password to view the data persisted by this api.

About

education-site-api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages