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.
Color | Hex |
---|---|
Primary Color | #FF9001 |
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
This project uses Poetry as backend package manager
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 -
Clone the project
git clone https://github.com/alexzawadsky/Grocket.git
Go to the project directory
cd frontend
Install dependencies
npm install
Start the server
npm run dev
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
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
All contact options are available in our profiles, feel free to DM using any option.