From 4d8ec39995c15ba02bcfd35e7597c7b161f701ab Mon Sep 17 00:00:00 2001 From: iRuperth Date: Wed, 28 Jan 2026 20:39:02 +0100 Subject: [PATCH 1/5] pushing CI --- .github/workflows/dockerhub.yml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/dockerhub.yml diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml new file mode 100644 index 0000000..a32935c --- /dev/null +++ b/.github/workflows/dockerhub.yml @@ -0,0 +1,34 @@ +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: . + file: ./Dockerfile + push: true + tags: | + iruperth/looping:latest + iruperth/looping:${{ github.sha }} \ No newline at end of file From 5b9ea04eb96ace24179964490ad02e277917d391 Mon Sep 17 00:00:00 2001 From: iRuperth Date: Wed, 28 Jan 2026 20:39:35 +0100 Subject: [PATCH 2/5] . --- testing.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 + + + + + From 0b0b21da8b0aa313c71375365af4dbbaa3a82681 Mon Sep 17 00:00:00 2001 From: iRuperth Date: Wed, 28 Jan 2026 20:47:26 +0100 Subject: [PATCH 3/5] Fix CI Dockerfile path --- .github/workflows/dockerhub.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index a32935c..d6e59c8 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -27,7 +27,7 @@ jobs: uses: docker/build-push-action@v4 with: context: . - file: ./Dockerfile + file: backend/Dockerfile push: true tags: | iruperth/looping:latest From 278344c38fc2c2a32777d72dd57abf1841c7076f Mon Sep 17 00:00:00 2001 From: iRuperth Date: Wed, 28 Jan 2026 20:51:20 +0100 Subject: [PATCH 4/5] Fix CI Dockerfile path 2 --- .github/workflows/dockerhub.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index d6e59c8..7a8166a 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -26,9 +26,26 @@ jobs: - name: Build and Push uses: docker/build-push-action@v4 with: - context: . - file: backend/Dockerfile + context: ./backend + file: ./backend/Dockerfile push: true tags: | iruperth/looping:latest - iruperth/looping:${{ github.sha }} \ No newline at end of file + 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 From 8dd978c9b0a4d29fb2b43124d21faf2bbe4d3f6f Mon Sep 17 00:00:00 2001 From: Roberto Molero Losada <97520685+iRuperth@users.noreply.github.com> Date: Wed, 28 Jan 2026 21:28:24 +0100 Subject: [PATCH 5/5] Fix README formatting and update project name Updated project name from 'MarketPlace' to 'Marketplace' and improved installation instructions. --- README.md | 90 ++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 80 insertions(+), 10 deletions(-) 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 +

+ + + +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. + +

+ Looping Marketplace +

+