Skip to content

alexbridge/java-spring-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java spring boot boilerplate

This id a demo spring boot boilerplate for RESTful java applications

Config

ENV variables needed:

  • APP_PORT: a port, that application run on

Run

You can run it with IDE, spring.boilerplate.Application.main as a start point

You can start from cli (see Makefile recipes):

  • build project make
  • run make run

Implemented endpoints:

  • GET /customers - all customers from repository
  • POST /customers - add new customer to repository
  • GET /customers/{id} - get customer by id, return 404 if not found
  • PUT /customers/{id} - update customer by id, return 404 if not found
  • DELETE /customers/{id} - delete customer by id, return 404 if not found
  • GET /doc - swagger api documentation

Benchmarking

You can check it with apache benchmark, see Makefile recipe bench

    make bench

About

Java spring boot boilerplate with SQLite storage and API swagger generator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published