diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml
new file mode 100644
index 0000000..7a8166a
--- /dev/null
+++ b/.github/workflows/dockerhub.yml
@@ -0,0 +1,51 @@
+name: Build and Push to Docker Hub
+
+on:
+ push:
+ branches:
+ - main
+ - dev
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v2
+
+ - name: Login to Docker Hub
+ uses: docker/login-action@v2
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+
+ - name: Build and Push
+ uses: docker/build-push-action@v4
+ with:
+ context: ./backend
+ file: ./backend/Dockerfile
+ push: true
+ tags: |
+ iruperth/looping:latest
+ iruperth/looping:${{ github.sha }}
+
+ deploy-test:
+ needs: build
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Pull image from Docker Hub
+ run: docker pull iruperth/looping:latest
+
+ - name: Run container for testing
+ run: docker run -d -p 8000:8000 iruperth/looping:latest
+
+ - name: Wait for container to start
+ run: sleep 5
+
+ - name: Test container is running
+ run: docker ps
diff --git a/README.md b/README.md
index 474683a..87eaa92 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,39 @@
-# Looping MarketPlace
+# Looping Marketplace
+
+
+
+
+
+
+
+Looping Marketplace is a full web application designed for buying and selling products. It includes a complete CRUD system and is built using Django, PostgreSQL, Supabase, Python, and Bootstrap for the frontend. The platform also integrates Stripe as a payment gateway.
+
+The application is fully functional for real use. Users can create an account and start browsing and purchasing products immediately. To become a seller, users must pay a one-time a fee, which unlocks the seller role and allows them to list and manage their own products.
+
+## Current Features
+- Full CRUD system for products
+- User authentication and role management
+- Buyer and seller account types
+- Stripe payment integration
+- PostgreSQL database with Supabase
+- Responsive UI built with Bootstrap
+- Marketplace ready for real transactions
+
+## Future Enhancements
+- Real-time chat between buyers and sellers
+- Optional paid promotion for sellers to highlight products at the top of the marketplace
+- Discount coupons for frequent buyers
+- Automated notifications for:
+ - Order updates
+ - Chat messages
+ - Low stock alerts
+- Long-term goal: native mobile application
+
+Looping Marketplace is designed to grow into a complete e-commerce ecosystem with advanced features for both buyers and sellers.
+
+
+
#### Comprehensive step-by-step instructions for installing and running the MarketPlace application.
## Requirements.
@@ -8,24 +42,40 @@
- Docker Desktop
- Git
-## Run Locally.
## Quick Start (Docker).
Repository.
[MarketPlace](https://github.com/Bootcamp-IA-P6/MarketPlace)
+
+You do not need to clone the repository to run the application:
```bash
-git clone https://github.com/Bootcamp-IA-P6/MarketPlace.git
-```
-```bash
-cd Backend
+docker pull iruperth/looping:latest
+docker run -d -p 8000:8000 iruperth/looping:latest
```
-```bash
+
+If you prefer to clone the repository and run it locally:
+
+``` bash
+git clone https://github.com/Bootcamp-IA-P6/MarketPlace.git
+cd MarketPlace/backend
docker compose up --build
```
-# Create virtual environment.
+To run the containers in the background:
+
+``` bash
+docker compose up -d
+```
+
+# Run Locally.
+## Create virtual environment.
+
### Mac / Linux
+``` bash
+cd backend
+```
+
``` bash
python3 -m venv venv
```
@@ -34,6 +84,9 @@ source venv/bin/activate
```
### Windows
``` bash
+cd backend
+```
+``` bash
python -m venv venv
```
``` bash
@@ -50,8 +103,9 @@ python manage.py migrate
### Run development server.
``` bash
python manage.py runserver
-```
-### Build and start containers.
+```
+
+# Build and start containers with DOCKER.
``` bash
docker compose up --build
```
@@ -63,3 +117,19 @@ docker compose up -d
``` bash
docker compose down
```
+
+
+
+
+
+
+## Contributing
+We welcome contributions to improve Looping Marketplace.
+If you would like to collaborate, please create a pull request and our team will review it.
+
+Thank you for your interest in the project.
+
+
+
+
+
diff --git a/testing.txt b/testing.txt
index 2483097..4431c96 100644
--- a/testing.txt
+++ b/testing.txt
@@ -22,7 +22,7 @@ ngrok http 8000
ngrok http 8000
-
+ sfsf
docker pull iruperth/looping:1.0.2
@@ -34,3 +34,11 @@ services:
ports:
- "8000:8000"
+
+
+docker-compose up
+
+
+
+
+