https://github.com/knlsharma/rest-api-tsf
https://github.com/knlsharma/rest-api-tsf
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/knlsharma/rest-api-tsf
- Owner: Knlsharma
- License: gpl-3.0
- Created: 2019-04-18T16:38:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T01:04:39.000Z (over 3 years ago)
- Last Synced: 2025-04-30T20:14:56.468Z (5 months ago)
- Language: Java
- Size: 63.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Spring Boot, MySQL, JPA, Hibernate Rest API.
Build Restful CRUD API for a simple Note-Taking application using Spring Boot, Mysql, JPA and Hibernate.
## Requirements
1. Java - 1.8.x
2. Maven - 3.x.x
3. Mysql - 5.x.x
## Steps to Setup
**1. Clone the application**
```bash
git clone https://github.com/Knlsharma/Rest-Api-TSF
```**2. Create Mysql database**
```bash
create database notes_app
```**3. Change mysql username and password as per your installation**
+ open `src/main/resources/application.properties`
+ change `spring.datasource.username` and `spring.datasource.password` as per your mysql installation
**4. Build and run the app using maven**
```bash
mvn package
java -jar target/easy-notes-1.0.0.jar
```Alternatively, you can run the app without packaging it using -
```bash
mvn spring-boot:run
```The app will start running at .
## Explore Rest APIs
The app defines following CRUD APIs.
GET /api/notes
POST /api/notes
GET /api/notes/{noteId}
PUT /api/notes/{noteId}
DELETE /api/notes/{noteId}You can test them using postman or any other rest client.