Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍕 Micro Fullstack App – Django / DRF / React / Redux / Vite

This is a minimal fullstack web application that demonstrates how to make modern technologies work seamlessly together:

🛠️ Tech Stack

🔙 Backend

  • Django — A robust Python framework to quickly build backend logic and manage databases.
  • Django REST Framework (DRF) — A powerful toolkit for exposing Django models via a RESTful API.

🔜 Frontend

  • Vite.js — A blazing-fast build tool and development server, a modern alternative to Create React App.
  • React.js — A declarative JavaScript library for building user interfaces.
  • Redux (with Redux Toolkit) — A predictable client-side state management library.

📦 Features

The app simulates a simple pizza ordering flow à la Uber Eats.
Each order is tied to a phone number.

🔄 User flow

  • 🧾 Enter a phone number to begin a new order.
  • Add/Remove pizzas from a list of available products.
  • 💾 If the user closes the app, the order can be recovered later by re-entering the same phone number.
  • ✅ Once ready, the user can confirm the order.
  • 🎁 On the confirmation page, entering the code PROMO10 will apply a €10 discount for orders over €30.

🚀 Installation

🐳 Docker (easiest)

⬇️ Docker needed

git clone https://github.com/TbdGnr/django_drf_vite_react_redux_minimal_app
cd django_drf_vite_react_redux_minimal_app
docker compose up --build

Open http://localhost:4173/ in a browser

Classic installation

✅ Prerequisites

  • Python 3.x
  • npm and Vite.js

📁 Setup Instructions

1. Backend – Django (in the first terminal)

git clone https://github.com/TbdGnr/django_drf_vite_react_redux_minimal_app
cd django_drf_vite_react_redux_minimal_app/backend
python -m venv venv

Activate the virtual environment:

  • macOS/Linux:
    source venv/bin/activate
  • Windows:
    venv\Scripts\activate.bat

Install dependencies:

pip install -r requirements.txt

Start the server:

python uber_eats/manage.py runserver

2. Frontend – React (in a second terminal)

cd frontend
npm install
npm run dev

🌐 Access the App

👤 Admin credentials

An admin account is pre-configured to manage products:

  • Username: thibaud
  • Password: 1234

About

Django / DRF / React / Redux minimal application

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages