Skip to content

Simple REST api that serves books to a web frontend store

Notifications You must be signed in to change notification settings

Olatunji-Longe/shopp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

About this project

This project represents a small REST backend for a book-store, exposing several endpoints that are leveraged by it's peer web app shopp-web:.


Tech Stack/Dependencies

This project utilizes the following technologies;

  • Java 8
  • Spring Boot (framework)
  • Gradle (build tool)
  • Embedded H2 (database)
  • Liquibase (db migration)
  • Caffeine (memory caching)
  • Redis (Disabled, but can be optionally turned to replace caffeine for more robust standalone caching)
  • A peer front-end application shopp-web: (written in React-16 webhooks) which consumes the APIs exposed by this service
  • JUnit (testing)
  • REST endpoints

Execution

  • Navigate to the root of the project and execute the following command;
    ./gradlew bootRun

All of the APIs are accessible via http://localhost:8090/api/** if you want to test with a REST client like Postman. Please see the API documentation here:

NOTE - All data exposed by the API endpoints are preloaded on the application's first start up. To reset the data, you can simply stop the application, delete the folder named database located directly under the root of the application, and start the application again. Now, you will be presented with fresh data from scratch.

Testing

Two sample unit/integration tests are currently provided just to show the testing possibilities. To run the sample tests issue the following command at the root of the project;

    ./gradlew clean test --info

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

Additional Links

These additional references should also help you:

About

Simple REST api that serves books to a web frontend store

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published