Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drink

Basic app to demonstrate Django-Rest-Framework

Credits

Installation

  1. Clone the Repository:

    git clone https://github.com/your-username/your-repository.git
    
  2. Navigate to the Project Directory:

    cd your-repository
    
  3. Create a Virtual Environment:

    python -m venv venv
    
  4. Activate the Virtual Environment:

    • On Windows:

      venv\Scripts\activate
    • On macOS/Linux:

      source venv/bin/activate
  5. Install Dependencies:

    pip install -r requirements.txt
    
  6. Run Migrations:

    python manage.py makemigrations network/app-name
    python manage.py migrate
    
  7. Run the Development Server:

    python manage.py runserver
    
  8. Access the App: Open your web browser and navigate to http://127.0.0.1:8000/.

The API will be accessible at http://127.0.0.1:8000/.

API Endpoints

Get List of Drinks

  • URL: /drinks/
  • Method: GET
  • Response:
    [
      {
        "id": 1,
        "name": "Drink1",
        "description": "Description of Drink1"
      },
      {
        "id": 2,
        "name": "Drink2",
        "description": "Description of Drink2"
      },
      ...
    ]
    
    

License

This project is licensed under the MIT License.

About

basic app to demonstrate django rest framework

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages