Source code for the Django REST framework tutorial.
- Python 3.8 or higher
- pip (Python package manager)
- Clone the repository:
git clone <repository-url>
cd rest-framework-tutorial
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
# On Windows
venv\Scripts\activate
# On macOS/Linux
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Run database migrations:
python manage.py migrate
- Create a superuser (optional):
python manage.py createsuperuser
- Start the development server:
python manage.py runserver
The API will be available at http://127.0.0.1:8000/