This repository contains a demo application built using Django, Django REST Framework (DRF), TypeScript, and React. This application serves as an example of a basic project management tool before the introduction of RxDjango. The application allows users to create projects, add tasks, and manage participants.
- Backend: Django, Django REST Framework
- Frontend: React, TypeScript
- Python 3.8+
- Node.js 14+
- npm or yarn
-
Clone the repository:
git clone https://github.com/yourusername/rxdjango-demo.git cd rxdjango-demo/backend
-
Create a virtual environment:
python -m venv backend-env
-
Activate the virtual environment:
-
On Windows:
backend-env\Scripts\activate
-
On macOS/Linux:
source backend-env/bin/activate
-
-
Install RxDjango and demo dependencies on backend:
pip install rxdjango django-cors-headers
-
Run migrations:
python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Start the backend server:
python manage.py runserver
-
Open a new shell and navigate to the frontend directory:
cd ../frontend
-
Install the frontend dependencies:
-
Using npm:
npm install
-
Using yarn:
yarn install
-
-
Start the frontend development server:
-
Using npm:
npm start
-
Using yarn:
yarn start
-
-
Backend: The backend server will be running at
http://localhost:8000/
. You can access the Django admin interface athttp://localhost:8000/admin/
using the superuser credentials you created earlier. -
Frontend: The frontend development server will be running at
http://localhost:3000/
. Open this URL in your browser to see the application in action.
- Ensure both the backend and frontend servers are running simultaneously to access the full functionality of the application.
- This setup represents the state of the application before the integration of RxDjango.
This project is licensed under the MIT License. See the LICENSE file for details.