Ensure python3
and node
is installed on the machine.
- Make the new virtual enviornment
python -m <venv-name> <path>
- Activate the environment
- For Windows Powershell
<venv-name>/Scripts/activate
- For Linux
source ./<venv-name>/bin/activate
- Clone the repository
git clone <url>
- Navigate to the cloned folder
- Install all python dependencies
pip install -r requirements.txt
- Intall all node dependenices
npm i
- Make Migrations
python manage.py makemigrations
python manage.py migrate
- Create a superuser
python manage.py createsuperuser
- Activate the virtual environment
- Navigate to the git folder
- Run the development server
python manage.py runserver
- Run the node command (in another terminal)
npm run css
- The website will become live at 127.0.0.1:8000
- To access the admin panel, navigate to 127.0.0.1:8000/admin