Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fdero/dietideals24-backend
Java spring-boot/postgresql/redis backend REST-API for an immaginary e-commerce website
https://github.com/fdero/dietideals24-backend
backend backend-api database e-commerce-website postgres postgresql redis redis-cache rest-api server spring-boot webapp
Last synced: 5 days ago
JSON representation
Java spring-boot/postgresql/redis backend REST-API for an immaginary e-commerce website
- Host: GitHub
- URL: https://github.com/fdero/dietideals24-backend
- Owner: fDero
- License: mit
- Created: 2024-04-28T13:33:16.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-10-17T18:45:47.000Z (about 1 month ago)
- Last Synced: 2024-10-20T01:16:05.110Z (about 1 month ago)
- Topics: backend, backend-api, database, e-commerce-website, postgres, postgresql, redis, redis-cache, rest-api, server, spring-boot, webapp
- Language: Java
- Homepage:
- Size: 449 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DietiDeals24-Backend
This repository hosts the backend for an immaginary e-commerce webapp. The project is composed by
a relational database managed with postgresql, an in-memory-cache managed with redis and a monolith-server,
written in java-21 and that uses the spring-boot backend-framework to provide the client with a REST-API.### Setup
To run the server the host machine must provide the following enviroment variables:
- DIETIDEALS24_AWS_S3_ACCESS_KEY
- DIETIDEALS24_AWS_S3_SECRET_KEY
- DIETIDEALS24_GEO_API_KEY
- DIETIDEALS24_GOOGLE_CLIENT_ID
- DIETIDEALS24_GOOGLE_CLIENT_SECRET
- DIETIDEALS24_GOOGLE_SMTP_PASSWORD### Build from source
To build and run a local instance of the server, provided that `docker-compose` is installed on your machine,
and that enviroment variables are correctly set, all you have to do is running the following command
```bash
$ docker-compose up
```### Testing
To run the tests, provided that `docker-compose` is installed on your machine,
and that enviroment variables are correctly set, all you have to do is running the following command
```bash
$ docker-compose -f docker-compose-server-unit-tests up
```