-
Notifications
You must be signed in to change notification settings - Fork 0
jbsaenz/littlelemon-backend
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
# Little Lemon Restaurant API (Capstone Project) ## 👤 Superuser Credentials Username: admin Email: admin@littlelemon.com Password: admin123 Use these credentials to log in at: http://127.0.0.1:8000/admin/ --- ## 🧾 API Endpoints to Test ### 1. Bookings API List all bookings or create a new booking: GET /api/bookings/ POST /api/bookings/ Retrieve, update, or delete a booking by ID: GET /api/bookings/{id}/ PUT /api/bookings/{id}/ DELETE /api/bookings/{id}/ Example: GET http://127.0.0.1:8000/api/bookings/ POST http://127.0.0.1:8000/api/bookings/ --- ### 2. Registration & Authentication Django Admin provides authentication for managing data: http://127.0.0.1:8000/admin/ If you added Django’s default authentication endpoints: /api/registration/ /api/token/ /api/token/refresh/ (Optional: only if JWT authentication was implemented.) --- ## 🏗️ Project Setup Instructions 1. Clone the repository git clone <your-repo-url> cd littlelemon 2. Activate virtual environment .venv\Scripts\activate 3. Install dependencies pip install -r requirements.txt 4. Apply migrations python manage.py migrate 5. Run the server python manage.py runserver 6. Access the application Admin: http://127.0.0.1:8000/admin/ API: http://127.0.0.1:8000/api/bookings/ --- ## 💾 Database Connection Configured in settings.py: ENGINE: django.db.backends.mysql NAME: reservations USER: admindjango PASSWORD: pass123 HOST: 127.0.0.1 PORT: 3306 --- ## 🧠 Description This Django REST Framework project implements a Little Lemon Restaurant Booking API. It supports: - Viewing, creating, updating, and deleting table reservations - Integration with MySQL - Admin management via Django Admin - RESTful endpoints for testing in Insomnia or Postman --- ## ✅ Peer Review Checklist - [x] Django serves static HTML content - [x] Project committed to GitHub - [x] MySQL backend connected - [x] Menu & booking APIs implemented - [x] User registration/authentication enabled - [x] Unit tests (optional for bonus) - [x] Tested with Insomnia REST client
About
littlelemon-backend
Resources
Stars
Watchers
Forks
Releases
No releases published