saidmtanzania / recipe-app-api

RESTful API for managing recipe data, developed using the Django framework. With this API, users can easily retrieve, add, modify, and delete recipe information, all using standardized RESTful protocols.

Home Page:http://ec2-34-201-57-135.compute-1.amazonaws.com/api/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

recipe-app-api

This repository is a RESTful API for managing recipe data, developed using the Django framework. With this API, users can easily retrieve, add, modify, and delete recipe information, all using standardized RESTful protocols. The API is designed to be scalable and easily integrated into existing applications or services, making it an ideal choice for anyone looking to build recipe management functionality into their own software. Whether you're building a cooking app, a meal planning service, or anything else that involves recipe data, this API has everything you need to get started. ######Click this Link to read documentation http://ec2-34-201-57-135.compute-1.amazonaws.com/api/docs/

Contents

Requirements

  • Python >=3.9
  • Docker
  • Git

Tools

  • Django>=3.0
  • djangorestframework>=3.12.4
  • psycopg2>=2.8.6
  • drf-spectacular>=0.15.1
  • Pillow>=8.2.0
  • uwsgi>=2.0.19
  • flake8>=3.9.2

Installation

  • Perform installation in the following category

    Development

    1.Clone this repository

    https://github.com/saidmtanzania/recipe-app-api.git
    

    2.Change directory.

    cd recipe-app-api
    

    3.Create .env file.

    .env.sample file for references
    

    4.Run the command to build image

    docker compose build OR docker-compose build
    

    5.Run command to run api instance

    docker compose up OR docker-compose up
    
    note: create superuser while container is running.
    docker compose run --rm app sh -c "python manage.py createsuperuser"
    
    note: perform testing.
    docker compose run --rm app sh -c "python manage.py test"
    
    note:access api documentation interface.
    127.0.0.1/api/docs/
    
    note:access api admin interface.
    127.0.0.1/admin/
    

    Production

    1.Clone this repository

    https://github.com/saidmtanzania/recipe-app-api.git
    

    2.Change directory.

    cd recipe-app-api
    

    3.Create .env file.

    .env.sample file for references
    

    4.Run the command to build image

    docker-compose -f docker-compose-deploy.yml build
    

    5.Run command to run api instance

    docker-compose -f docker-compose-deploy run -d
    
    note: create superuser while container is running
    docker-compose -f docker-compose-deploy.yml run --rm app sh -c "python manage.py createsuperuser"
    
    note:access api documentation interface
    cloud_instance_url/api/docs/
    
    note:Insert token for authentication as follow:
    Token generated_Token_here
    
    note:access api admin interface
    cloud_instance_url/admin/
    

About

RESTful API for managing recipe data, developed using the Django framework. With this API, users can easily retrieve, add, modify, and delete recipe information, all using standardized RESTful protocols.

http://ec2-34-201-57-135.compute-1.amazonaws.com/api/docs/


Languages

Language:Python 96.9%Language:Dockerfile 2.3%Language:Shell 0.4%Language:Smarty 0.4%