Skip to content

Files

Latest commit

max-ray001Sushil Kamble
and
Sushil Kamble
May 27, 2023
87bbf25 · May 27, 2023

History

History
81 lines (52 loc) · 1.38 KB

README.md

File metadata and controls

81 lines (52 loc) · 1.38 KB

Django Rest Auth with React Vite - 2023

Steps for Running Project

Requirements

Python, Node, git

Clone the repository:

  • Create a empty folder and cd into that folder.
  • Type the following command to clone project in same directory.
git clone https://github.com/sushil-kamble/django-react-auth.git .

Backend

1. Go to the root folder and perform the following commands:

cd backend/

2. Create and activate the virtual environment

python -m venv venv
venv\Scripts\activate

If their is any error activating virtual env, please google search it for your system or try venv\bin\activate or source venv/bin/activate

3. Install required packages

pip install -r requirements.txt

4. Run the server

python manage.py migrate
python manage.py runserver

Frontend

  • Head back to the root folder
  • Enter in cd frontend/

1. Installing packages

yarn
If you don't have yarn installed

npm i

Remove yarn.lock as you will already have package.lock

2. Run the application

yarn dev # OR npm run dev

Make sure both frontend and backend are running.

Reinitailize git repository

  • Delete .git folder in project root

    Make sure you turn on the "Show hidden files, folders and disks" option.

  • git init