Basic Setup
Project Zero is a base for rapidly building feature-rich e-commerce sites. It is powered by Django framework, Jinja templating engine, jQuery JS library and SASS CSS preprocessor.
Installation
It is recommended to use yarn as your package manager.
brew install yarn # only for mac usersnpm i -g yarn # for non-mac usersInitiate and update git submodule :
git submodule update --initCreate and activate a virtual environment using Python 3.x:
python3 -m venv venv
source venv/bin/activateInstall pip packages:
pip install wheel # for ubuntu users
pip install -r omnife_project/requirements.txt
# if project includes additional libraries such as pz-otp
# (you can validate this by checking if a requirements.txt exists in project root)
pip install -r requirements.txtCopy example environment file:
cp .env.example .envRun migrations:
python manage.py migrateStart local Django development server:
# port number can be changed but make sure to use "0:"
python manage.py runserver 0:8000Setup node modules (on a new terminal/tab):
cd templates/
yarn install # npm installStart development server:
# with live reloading and clean webpack output
yarn dev # npm run devLast updated
Was this helpful?

