Dinuda / rest-auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django Rest Auth

For Running the 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

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 start # OR npm run start

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


Languages

Language:Python 47.0%Language:JavaScript 43.2%Language:HTML 8.1%Language:CSS 1.7%