Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/daguttt/final_assessment_logistics_warehouse

REST API to manage pallets and loads in a warehouse.
https://github.com/daguttt/final_assessment_logistics_warehouse

Last synced: 6 days ago
JSON representation

REST API to manage pallets and loads in a warehouse.

Awesome Lists containing this project

README

        

# Logistics Warehouse API
## Descripción

REST API to manage pallets and loads in a warehouse.

# Repository URL
https://github.com/daguttt/final_assessment_logistics_warehouse

# Project Setup

## 1. Environment variables

1. Copy the [`.env.example`](./src/main/resources/.env.example) file of the `resources/` folder and create the **`.env` file** in the same folder (`resources/`) **replacing with real variables**.

2. The `JWT_SECRET_KEY` must be an HMAC hash string of 256 bits; otherwise, the token generation will throw an error. **Use [this website](https://www.devglan.com/online-tools/hmac-sha256-online?ref=blog.tericcabrel.com) to generate one**.

> [!TIP]
> Use whichever text for the *"Text to Compute Hash"* and *"Secret Key"* fields in the website.

3. **Emails functionality:**
- The `MAIL_PASSWORD` must be an **app password** of your Gmail (*Google*) account. You can generate one in [Google App Passwords](https://myaccount.google.com/apppasswords)
- The `MAIL_USERNAME` is the **email address** of your Gmail account (e.g. `[email protected]`).

## 2. Database Setup
Create the database named as in the [`.env.example` file](./src/main/resources/.env.example), otherwise running the appication will throw an entityManager error.

## 3. Run the application
You can now safely run the application using your preferred way:
1. Via IDE.
2. Via command line:

```bash
./mvnw spring-boot:run
```
> [!TIP]
> If you get an error running the application, with the Maven command...
>
> Make sure to give executable (+x) permissions
>

chmod ugo+x ./mvnw

>