MrNaif2018 / java-backend-labs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

E-commerce store management

Quality Gate Status Security Rating

Live demo

This API provides endpoints to create and manage an unlimited number of stores, products, frontend, as well as a payment processing integration with Bitcart

Setup

This project uses PostgreSQL database to store it's internal state.

Installation steps (for ubuntu 22.04):

sudo apt install postgresql postgresql-contrib

You can configure database password and other connection settings in src/main/resources/application.yml (or via environment variables like SPRING_DB_PASSWORD)

By default, you need to have database named java present. You can create it using:

sudo -u postgres createdb java

The app will run database migrations on boot automatically

Running

To run the app, start it from your IDE or use maven:

mvn spring-boot:test-run

You can also run it in docker using docker compose:

docker compose up -d

Testing

You can run tests using your IDE or maven:

mvn test

Used stack

  • Java 21
  • Spring Web 3.2.x series
  • PostgreSQL 14
  • Maven

Usage

You can find swagger UI documentation at http://localhost:8080 and try API requests here

Swagger UI

About


Languages

Language:Java 99.7%Language:Dockerfile 0.3%