recipe-app-api

First Django REST API

Using:

  • Conda
  • Python
  • MySQL

Setup Project:

Create environment for the project

conda create --name <environment-name> python=3.7

Activate environment

conda activate <environment-name>

Navigate to project directory

cd recipe-app-api

Install project requirements

pip install -r requirements.txt

Run server

python manage.py runserver

Setup Database:

Change DATABASES IN app/settings.py

        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'recipe_app_api',
        'USER': 'root',
        'PASSWORD': '',
        'HOST': 'localhost',
        'PORT': '3306'

Migrate tables

python manage.py migrate

Setup SuperUser:

python manage.py createsuperuser