Skip to content

Halle-Group/django-react-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published