A simple "Hello World" full-stack application built with Django (Backend) and React with Vite (Frontend).
- Backend: Django 6.0 (REST API)
- Frontend: React (Vite, TypeScript, Lucide Icons)
- Styling: Premium custom CSS with dark/light mode support.
- Communication: REST API using Axios with CORS enabled.
- Python 3.10+
- Node.js 18+
- npm 9+
- Navigate to the backend directory:
cd backend - Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install django django-cors-headers psycopg2-binary
- Run the development server:
The backend will be available at
python manage.py runserver
http://localhost:8000/api/hello/.
- Navigate to the frontend directory:
cd frontend - Install dependencies:
npm install
- Run the development server:
The frontend will be available at
npm run dev
http://localhost:5173/.
- Vite: Used for its superior development experience and fast build times.
- Django: Chosen for its robustness and ease of setting up a structured API.
- CORS: Configured in Django to allow the React frontend to fetch data during local development.
- Responsive Design: Custom CSS ensures the application looks premium on all screen sizes and supports dark mode.