Skip to content

Combinn/Combinn-backend

Repository files navigation

Combinn Backend API

Project structure

DB: Mongo Atlas (connector is Djongo)

Framework: Django Rest Framework

./core : main django project

./scrapy: Scrapy crawler for fetching product data

registered apps:

  • Users
  • Products
  • Categories
  • Explore

Executing Project

Running Docker container

Clear old docker images and volumes first:

`docker-compose down`  (stops containers from running, removes network and volume attachments)

`docker volume prune` (removes fs volumes that became unused from command above)

`docker-compose up --build`  (rebuild web image from Dockerfile)

connect mongodb from localhost:27017 using the password in .env

you can access django app from http://localhost:8050

to run commands in a running container : docker-compose run {container_name} {command}

  • docker-compose run web python manage.py shell

  • docker-compose run web sh (opens shell for the given container, it lives in /bin/sh))

Running Project locally via virtualenv

TODO:

  • Add pipenv
  • Check Github Actions
  • Profile Image Update
  • Sendi mails
  • Fetch Tag Products
  • Integrate Scrapy
  • Integrate Django Channels

python -m venv venv

./venv/bin/activate

python manage.py makemigrations

python manage.py migrate

python manage.py runserver

Very important links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published