codingforentrepreneurs / django-nextjs-backend-api

The Django Ninja API backend for the Django x Next.js course.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django <> Next.js - Backend API

The Django Ninja API backend for the Django x Next.js course.

Getting Started

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

Copy default env

cp .env.sample .env

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

About

The Django Ninja API backend for the Django x Next.js course.

License:MIT License


Languages

Language:Python 87.5%Language:Dockerfile 12.5%