Giter Site home page Giter Site logo

sushil-kamble / django-react-auth Goto Github PK

View Code? Open in Web Editor NEW
26.0 1.0 13.0 252 KB

Authentication template for your future full stack application

Python 39.08% HTML 1.36% JavaScript 52.80% CSS 6.76%
django django-rest-framework authentication react axios

django-react-auth's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.