An open API service indexing awesome lists of open source software.

https://github.com/sachnaror/todo_apis

REST API with Django Rest Framework and MySQL
https://github.com/sachnaror/todo_apis

django-rest-framework rest-api restapi restful-api

Last synced: about 1 year ago
JSON representation

REST API with Django Rest Framework and MySQL

Awesome Lists containing this project

README

          

# REST API with Django Rest Framework and MySQL

This repository contains a tutorial on how to create a basic REST API with Django Rest Framework and MySQL.

## Installation

Before getting started, ensure you have the following prerequisites installed:

- MySQL: v8.0 - [Download MySQL](https://dev.mysql.com/downloads/mysql/)
- Python: v3.9 - [Download Python](https://www.python.org/downloads/)
- Virtualenv: v20.1.0 - [Installing Virtualenv](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment)
- Pip: 20.2.4 - This comes installed with Python 3
- Django: v3.1.2 - This will be installed via `requirements.txt`. See below.
- Django Rest Framework: v3.12.2 - This will be installed via `requirements.txt`. See below.

To install the required Python packages, run:

```python

pip install -r requirements.txt

```

image

## Usage

To start the server, navigate to the `todoapi/` directory and run the following command:

```python

python manage.py runserver

```