Setting Up Development Environment 🧑💻
Here's required technology and languages to get started:
Assets compile require the build tools. These libraries are required as below:
Python is the programming language that Django is built with. Django is a Python web framework. See What Python version can I use with Django? for details.
To check if Python is already installed on your system, open your terminal/command prompt and run:
python --version
If Python is not installed, follow these steps to install it:
Mac & Windows:For Linux, you can use your package manager to install Python. For example, on Ubuntu, you can use:
sudo apt-get update
sudo apt-get install python3
To check if PIP is already installed on your system, open your terminal/command prompt and run:
pip --version
Installing Pip using get-pip.py
cd
to the folder containing the get-pip.py
file and run:Before running the application we need to build theme assets from full-version/src/ or starter-kit/src/
folder:
src/
cd src
# For Yarn
yarn
# For npm
npm install --legacy-peer-deps
src/assets
folder:Task (yarn
or gulp
) lists for development build.
Yarn Task | Gulp Task | Description |
---|---|---|
yarn watch |
gulp watch |
Watch files for changes and automatically recompile them when it changed. |
yarn build |
gulp build |
Compile sources and copy assets. |
Task (yarn
or gulp
) lists for production build. It will generate minified assets for production deployment.
Yarn Task | Gulp Task | Description |
---|---|---|
yarn build:prod |
gulp build --env=production |
Run build task in production environment. |
First, ensure you are in the correct directory. You should be in either the "full-version"
or "starter-kit"
folder. Once you are in the appropriate folder, proceed with the following instructions:
python -m venv .venv
source .venv/bin/activate
source .venv/bin/activate
source .venv/Scripts/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver
Keep your prompt running by default application is served on http://localhost:8000
To execute the application on a particular IP address(For ex: http://0.0.0.0:8000), include the desired IP address within the `ALLOWED_HOSTS` parameter in the settings.py
file.
python manage.py runserver 0.0.0.0:8000