Skip to content

PacaWarrior13/recipe-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recipe-API

Recipe-API is a Django REST Framework application that provides a simple, robust API for managing recipes, ingredients, categories, and user interactions.

Features

  • CRUD operations for recipes, ingredients, and categories
  • User authentication and permissions (JWT or Session Auth)
  • Filtering, pagination, and search support

Installation

# Clone the repo
git clone https://github.com/your-org/recipe-api.git
cd recipe-api

# Install dependencies and activate environment
poetry install
poetry shell

Quickstart

# Apply database migrations
poetry run python manage.py migrate

# Create a superuser for the admin interface
poetry run python manage.py createsuperuser

# Run the development server
poetry run python manage.py runserver

Open your web browser and navigate to:

  • http://localhost:8000/api/recipes to list all recipes
  • http://localhost:8000/api/recipes to create a new recipe
  • http://localhost:8000/api/recipes/1 to retrieve a single recipe

Development

We use Poetry for dependency management and virtual environments.

  1. Install dependencies (including dev dependencies):
    poetry install
    poetry shell
  2. Format & Lint:
    poetry run black . && poetry run isort . && poetry run flake8 .
  3. Run tests:
    poetry run pytest

Contributing

Please read CONTRIBUTING.md for detailed guidelines on issues, pull requests, coding style, and testing.

License

This project is licensed under the MIT License. See LICENSE for details.

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages