Skip to content

Java API on top of the Spring stack. Spring/Hibernate/Docker

License

Notifications You must be signed in to change notification settings

coarsehorse/java-ape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Ape

Java Restful API on top of the Spring stack.

Used technologies:

  • Java 11
  • Spring Boot
    • Spring Data JPA
    • Spring Security
    • Spring Web
  • JWT
  • Hibernate
  • MySQL
  • VAVR
  • Lombok
  • Docker

Description

The idea of application is simple: we have users, users have posts. Users can have different roles(ADMIN, USER) and permissions(USER_WRITE, ADMIN_READ, etc.). Based on roles and permissions we can control access to the API endpoints. The app implements JWT authentication and CRUD operations.

Application can be configured locally using application.properties or using env variables(DB_URL, JWT_SECRET, etc.) to run it on remote host.

By default, a default admin will be created on startup. We can control this behavior using default.admin.* properties or DEF_ADMIN_* env variables.

How to build and run

  • cd ./java-ape
  • docker-compose up --build

Now we can access java-ape at localhost:8080 and mysql at localhost:3307.
MySQL data is persisted between restarts.
App and db default credentials may be found in application.properties.

Screenshots

About

Java API on top of the Spring stack. Spring/Hibernate/Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published