https://github.com/vanguardmaster01/react-django
CRUD operations using React + Django
https://github.com/vanguardmaster01/react-django
react react-django-application react-django-crud
Last synced: 12 months ago
JSON representation
CRUD operations using React + Django
- Host: GitHub
- URL: https://github.com/vanguardmaster01/react-django
- Owner: vanguardmaster01
- Created: 2023-11-13T23:34:43.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-13T23:35:52.000Z (about 2 years ago)
- Last Synced: 2025-01-08T17:23:27.691Z (about 1 year ago)
- Topics: react, react-django-application, react-django-crud
- Language: Python
- Homepage:
- Size: 313 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React And Django App
CRUD Operations using React for frontend and Django for backend
## Run the Project
Clone the repository
#### Running the Django Project
> Move into server directory (django):
```
cd server
```
> Create virtual environment
- On WindowsOS
```
python -m venv
```
> Activate virtual environment
- On WindowsOS
- Using bash:
```
source /Scripts/activate
```
- Using CMD:
```
\Scripts\activate.bat
```
- Using PowerShell:
```
\Scripts\Activate.ps1
```
> Install requirements
```
pip install django djangorestframework django-cors-headers
```
> Run migrations:
```
python manage.py makemigrations
```
```
python manage.py migrate
```
> Run on port 8000:
```
python manage.py runserver
```
### Running the ReactJS Project
> Move into client directory (ReactJS)
```
cd client
```
> Install dependencies
```
npm install
```
> Create .env file using .env.sample
> Start the project
```
npm start
```