Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

CRUD operations using React + Django

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
```