https://github.com/jeck0v/cobalt-backend
Repo back-end du projet Cobalt
https://github.com/jeck0v/cobalt-backend
docker docker-compose flask-api mongo-express mongodb nginx swagger
Last synced: 2 months ago
JSON representation
Repo back-end du projet Cobalt
- Host: GitHub
- URL: https://github.com/jeck0v/cobalt-backend
- Owner: Jeck0v
- Created: 2025-02-12T08:01:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-14T10:59:18.000Z (over 1 year ago)
- Last Synced: 2025-02-26T04:33:40.698Z (over 1 year ago)
- Topics: docker, docker-compose, flask-api, mongo-express, mongodb, nginx, swagger
- Language: Python
- Homepage:
- Size: 3.05 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#
Cobalt e-commerce PWA - Back-end
## Start the app:
- [Front-end in React](https://github.com/Alexis-Gontier/Cobalt-frontend)
- Back-end in Flask
- BDD MongoDB
- Swagger UI
Clone the project:
```bash
git clone https://github.com/Jeck0v/Cobalt-backend.git
```
Stating app with:
```bash
docker compose up --build
```
For Swagger:
http://localhost:5000/swagger/
For Mongo-Express:
http://localhost:8081/
The db is only initialized in the `express-mongo` when the request is received, so when a user creates an account, the request creates the db with the user collection.
## How to fix the known error:
If you have mongo `dependency failed to start: container mongo is unhealthy` or any error from `storage`:
Please make this:
```bash
docker compose down -v
```
```bash
rm -rf storage/
```
```bash
docker compose up --build
```
## 🙇 Authors:
- [Arnaud Fischer](https://github.com/Jeck0v)
- [Hugo Martins](https://github.com/AkaTFL)
- [Louis Dondey](https://github.com/Kae134)