An open API service indexing awesome lists of open source software.

https://github.com/marceloxhenrique/ecommerce-backend

The E-Commerce Shoes Store API is the server-side application for managing data and processes of an online shoes store.
https://github.com/marceloxhenrique/ecommerce-backend

docker java junit jwt-token postgresql spring-boot spring-data-jpa spring-security supabase-db

Last synced: 6 months ago
JSON representation

The E-Commerce Shoes Store API is the server-side application for managing data and processes of an online shoes store.

Awesome Lists containing this project

README

          

E-Commerce Shoes Store API

The E-Commerce Shoes Store API is the server-side application for managing data and processes of an online shoes store. It provides REST APIs to handle core business logic, including product management, user authentication, and order processing.

💻 Technologies

![JAVA](https://img.shields.io/badge/Java-%23ED8B00.svg?style=for-the-badge&logo=openjdk&logoColor=white)
![SPRING-BOOT](https://img.shields.io/badge/Spring%20Boot-6DB33F?style=for-the-badge&logo=springboot&logoColor=fff)
![SPRING-SECURITY](https://img.shields.io/badge/Spring_Security-6DB33F?style=for-the-badge&logo=Spring-Security&logoColor=white)
![JUNIT5](https://img.shields.io/badge/Junit5-25A162?style=for-the-badge&logo=junit5&logoColor=fff)
![POSTGRESQL](https://img.shields.io/badge/PostgreSQL-316192?style=for-the-badge&logo=postgresql&logoColor=white)
![SUPABASE](https://img.shields.io/badge/Supabase-3FCF8E?style=for-the-badge&logo=supabase&logoColor=fff)
![DOCKER](https://img.shields.io/badge/Docker-2496ED?style=for-the-badge&logo=docker&logoColor=fff)
![RENDER](https://img.shields.io/badge/Render-fff?style=for-the-badge&logo=render&logoColor=000)

🚀 Getting started

Prerequisites

- Java 17+
- Maven
- Git
- Docker

Cloning

First, clone the repository:

```shell
git clone git@github.com:marceloxhenrique/ecommerce-backend.git
```

Navigate to the project directory

```shell
cd
```

Install the project

```shell
mvn clean install
```

Setup PostgreSQL Database with Docker Compose

Start the PostgreSQL database using Docker Compose

```shell
docker-compose up -d
```

Setup application.properties

```shell
spring.application.name=ecommerce
spring.sql.init.platform=postgres
spring.datasource.url=${POSTGRES_DATA_SOURCE}
spring.datasource.username=${POSTGRES_USER}
spring.datasource.password=${POSTGRES_PASSWORD}
spring.jpa.hibernate.ddl-auto=update
```

Running the application

The app run on port 8080 by default.

```shell
mvn spring-boot:run
```