Basic app to demonstrate Django-Rest-Framework
- Amazing tutorial by Caleb Curry
-
Clone the Repository:
git clone https://github.com/your-username/your-repository.git
-
Navigate to the Project Directory:
cd your-repository -
Create a Virtual Environment:
python -m venv venv
-
Activate the Virtual Environment:
-
On Windows:
venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
-
-
Install Dependencies:
pip install -r requirements.txt
-
Run Migrations:
python manage.py makemigrations network/app-name python manage.py migrate
-
Run the Development Server:
python manage.py runserver
-
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/.
- URL:
/drinks/ - Method:
GET - Response:
[ { "id": 1, "name": "Drink1", "description": "Description of Drink1" }, { "id": 2, "name": "Drink2", "description": "Description of Drink2" }, ... ]
This project is licensed under the MIT License.