XShop's back end, dashboard, inventory, API, core business logic, and web-related stuff.
The Web part of XShop’s system.
cd
into the project.env.example
to .env
, and change values (if needed)poetry install
to install dependencies (which will create a virtualenv automatically)poetry shell
to activate the virtual environmentdocker-compose up
to run the db container (and leave it running)poetry shell
again./manage.py migrate
./manage.py runserver
to run the development server./manage.py test
to run your testsflake8
to make sure your code style is ok├── api.http API specs through examples directly from vscode, This extension needed
├── docker-compose.yml local dev containers specs
├── manage.py
├── poetry.lock poetry lock file which contains project’s dependencies
├── pyproject.toml python’s project specs new standard
├── README.md This file
├── Procfile Deployment to heroku
├── project project dir created by django-admin
│ ├── settings.py Project settings
│ ├── urls.py Project URL Paths
├── static css/js/img files that help with the design
├── templates HTML templates. A folder for each app inside the project
└── xshop Container of all django apps in the project
├── core Core app that contains essential functionalities like admin edits and management commands
├── invoices Every thing related to invoices should be here
├── orders orders-related logic
├── pages static/semi-static pages like (about, home, contact)…etc
├── products products-related code
├── shops shops-related code (models, views, apis, etc..)
├── users users-related logic (models, views, api, etc..)
└── utils project-wide utilities
Please Note that each app contains: