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

https://github.com/yoru-cyber/cardstore

Fake e-commerce to buy cards
https://github.com/yoru-cyber/cardstore

docker docker-compose flask python3 react typescript

Last synced: 3 months ago
JSON representation

Fake e-commerce to buy cards

Awesome Lists containing this project

README

          

# Bookstore 📚
> This is a fake e-commerce to buy cards.

## Technical Implementation
This project has a **microservices architecture**, each service is built with **Flask** and connects to a **PostgreSQL** database. Each service has its own docs implemented with **Swagger-UI**. All these services are consume by a **React** client built with **Vite.**


black cat very funny

## Made with


flask-logo
docker
external-react-a-javascript-library-for-building-user-interfaces-logo-color-tal-revivo
postgreesql

### Instructions to run
**SSH**
```shell
git clone git@github.com:Yoru-cyber/cardstore.git
```
**HTTPS**
```shell
git clone https://github.com/Yoru-cyber/cardstore.git
```
**Enviroment**
You need to create an .env file which will contain the URI of the database and the cors direction.

*Inside the folder of the project*
```shell
touch .env
```
*Write on the file the following variables*

```shell
DB_URI = postgresql://user:1234@database:5432/cardstore
CORS_ORIGIN = http://localhost:5173/
```

**Build and run container**
```shell
Docker compose up --build
```
### To add
- Pagination ⏳
- Unit Testing ⏳
- Reverse Proxy ⏳

### Docs
You can access the docs by going to http://localhost:port/apidocs with the ***port*** of the service