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
- Host: GitHub
- URL: https://github.com/yoru-cyber/cardstore
- Owner: Yoru-cyber
- Created: 2024-05-19T03:25:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-25T02:41:34.000Z (about 2 years ago)
- Last Synced: 2025-01-05T22:44:04.283Z (over 1 year ago)
- Topics: docker, docker-compose, flask, python3, react, typescript
- Language: Python
- Homepage:
- Size: 29.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.**
## Made with
### 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