Skip to content
Merged

Dev #54

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
@@ -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
90 changes: 80 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@

# Looping MarketPlace
# Looping Marketplace

<p align="center">
<img src="backend/static/images/suuuu5.png" alt="Looping Marketplace" width="600">
</p>



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.
Expand All @@ -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
```
Expand All @@ -34,6 +84,9 @@ source venv/bin/activate
```
### Windows
``` bash
cd backend
```
``` bash
python -m venv venv
```
``` bash
Expand All @@ -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
```
Expand All @@ -63,3 +117,19 @@ docker compose up -d
``` bash
docker compose down
```


<br>
<br>


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

<p align="center">
<img src="backend/static/images/suuuu2.png" alt="Looping Marketplace" width="600">
</p>

10 changes: 9 additions & 1 deletion testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ngrok http 8000

ngrok http 8000


sfsf

docker pull iruperth/looping:1.0.2

Expand All @@ -34,3 +34,11 @@ services:
ports:
- "8000:8000"



docker-compose up