This is a full-stack CRUD (Create, Read, Update, Delete) application built using React.js with Vite on the frontend and Python with Django on the backend. The project leverages Django REST Framework for API development, serializers for data handling, and includes basic CSS for styling the user interface.
- Create, read, update, and delete records through a user-friendly interface.
- RESTful API built with Django REST Framework.
- Efficient data serialization for seamless communication between frontend and backend.
- Responsive and clean UI with custom CSS styling.
- Fast development and build process powered by Vite.
- Frontend: React.js, Vite, CSS
- Backend: Python, Django, Django REST Framework
- Data Handling: Django Serializers
- Node.js (for React and Vite)
- Python 3.x (for Django)
- pip (Python package manager)
- Git
- Check out requirements.txt
- Clone the repository:
git clone https://github.com/Phani-LP/rdjproject.git
cd rdjproject
- Backend setup:
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver
- Frontend Setup: cd frontend npm install npm run dev
4.Access the Application:
- Backend API: http://localhost:8000
- Frontend: http://localhost:5173
- Navigate to the frontend URL (
http://localhost:5173
) to interact with the CRUD interface. - The React frontend uses Fetch to make API calls to the backend for creating, reading, updating, and deleting records.
- The backend, built with Django REST Framework, provides RESTful API endpoints to handle CRUD operations.
- Example API endpoints:
GET /api/items/
- List all itemsPOST /api/items/
- Create a new itemPUT /api/items/:id/
- Update an itemDELETE /api/items/:id/
- Delete an item
- Test API endpoints programmatically using tools like Postman or curl.
Project Structure:
rdjproject/
├── rdjproject/ # Django backend
│ ├── api/ # Django app
│ ├── manage.py # Django management script
│ └── requirements.txt # Python dependencies
├── frontend/ # React frontend
│ ├── src/ # React components and CSS
│ ├── package.json # Node.js dependencies
│ └── vite.config.js # Vite configuration
└── README.md # Project documentation
Contributing
- Fork the repository.
- Create a new branch (git checkout -b feature/your-feature).
- Commit your changes (git commit -m "Add your feature").
- Push to the branch (git push origin feature/your-feature).
- Open a pull request.
Contact:
For questions or feedback, fill the form in my portfolio:
D Naga Phanindra