Skip to content

alexzawadsky/Grocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

Grocket

Grocket is an international online marketplace that specializes in secondhand items. It provides a platform for users to buy and sell a variety of used goods from all over the world, including clothing, electronics, furniture, and more.

contributors last update


📔 Table of Contents

🌟 About the Project

📷 Screenshots

screenshot

👾 Tech Stack

Frontend

Backend

Database

DevOps

🎨 Color Reference

Color Hex
Primary Color #FF9001 #FF9001

🔑 Environment Variables

To run this project, you will need to add the following environment variables to your .env file.

infra/.env

DB_ENGINE=django.db.backends.postgresql
DB_NAME=postgres
POSTGRES_USER=postgres
POSTGRES_PASSWORD=<your password>
DB_HOST=db
DB_PORT=5432
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_DB=0

🧰 Getting Started

‼️ Prerequisites

This project uses Poetry as backend package manager

Instalation

Linux, macOS, Windows (WSL)

curl -sSL https://install.python-poetry.org | python3 -

Windows (Powershell)

(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -

🏃 Run Locally

Clone the project

git clone https://github.com/alexzawadsky/Grocket.git

Frontend

Go to the project directory

cd frontend

Install dependencies

npm install

Start the server

npm run dev

Backend

Go to the backend directory

cd backend

Install dependencies

poetry shell
poetry install

Go to the project directory

cd grocket

Apply migrations

python manage.py migrate

Add dump data to the database

sh data/json/add.sh

OR

python3 manage.py loaddatautf8 data/json/categories.json
python3 manage.py loaddatautf8 data/json/promotions.json
python3 manage.py loaddatautf8 data/json/statuses.json

Start the server

python manage.py runserver

🚩 Deployment in docker

Go to the docker-compose directory

cd infra

Start docker with bash script

sh install.sh

Start docker manually

docker-compose up -d --build
docker-compose exec web python manage.py migrate
docker-compose exec web python manage.py collectstatic
docker-compose exec web python manage.py loaddatautf8 data/json/categories.json
docker-compose exec web python manage.py loaddatautf8 data/json/promotions.json
docker-compose exec web python manage.py loaddatautf8 data/json/statuses.json

🤝 Contact

All contact options are available in our profiles, feel free to DM using any option.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published