The Django Ninja API backend for the Django x Next.js course.
Clone, create virtual environment, activate it, install requirements, then run:
git clone https://github.com/codingforentrepreneurs/django-nextjs-backend-api
Create virtual environment
# if mac/linux/wsl
python3 -m venv venv
# if windows powershell
c:\Python312\python.exe -m venv
Activate virtual environment
# if mac/linux/wsl
source venv/bin/activate
# if windows powershell
.\venv\Scripts\activate
Install requirements
# If activated, the command line should start with:
# (venv)
pip install pip --upgrade
pip install -r requirements.txt
Run project
# Using the Rav CLI: https://github.com/jmitchel3/rav
rav run server
# or directly with django
cd src
python manage.py runserver 8001