https://github.com/denilsonssj/personapi
Simple Demo person api built with Spring Boot.
https://github.com/denilsonssj/personapi
java jdk11 mapstruct postrgres spring springdatajpa
Last synced: 23 days ago
JSON representation
Simple Demo person api built with Spring Boot.
- Host: GitHub
- URL: https://github.com/denilsonssj/personapi
- Owner: denilsonssj
- License: mit
- Created: 2021-10-22T00:19:11.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-02T01:25:31.000Z (over 4 years ago)
- Last Synced: 2025-05-19T23:43:20.784Z (about 1 year ago)
- Topics: java, jdk11, mapstruct, postrgres, spring, springdatajpa
- Language: Java
- Homepage: https://denilsonssj-personapi.herokuapp.com/swagger-ui/
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Person API
## Getting started
### Installation
Clone the repository
```
$ git clone https://github.com/denilsonssj/personapi
```
### Prerequisites
First, make sure you use JDK version 11 or higher. You can download this version at this [link](https://www.oracle.com/br/java/technologies/javase-jdk11-downloads.html).
After, create file application.properties in location *src/main/resources/* and copy with the values below and replace him.
```yml
spring.datasource.url: jdbc:postgresql://127.0.0.1:5432/personapi
spring.datasource.username: postgres
spring.datasource.password: postgres
spring.jpa.database-platform: org.hibernate.dialect.PostgreSQL94Dialect
spring.jpa.show-sql: false
spring.jpa.hibernate.ddl-auto: update
server.port: 9000
```
### Installing dependencies
Now, install all dependencies using maven:
```
$ ./mvnw install -U clean
```
### Running the application
```
$ ./mvnw spring-boot:run
```
## Technologies and tools
- [Java](https://www.java.com/)
- [Spring Boot](https://spring.io/projects/spring-boot)
- [Maven](https://maven.apache.org/)
- [JDK11](https://www.oracle.com/br/java/technologies/javase-jdk11-downloads.html)
- [Lombok](https://projectlombok.org/)
- [Swagger](https://swagger.io/)
- [PostgreSQL](https://www.postgresql.org/)
- [H2 Database](https://www.h2database.com/html/main.html)
- [Junit 5](https://junit.org/junit5/)
## Testing the application
...
## Demo
The demo project can be viewed [here](https://denilsonssj-personapi.herokuapp.com/swagger-ui/).
## License
[MIT](https://github.com/denilsonssj/personapi/blob/main/LICENSE)