GithubHelp home page GithubHelp logo

hartl3y94 / testingrepo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from edsawma/testingrepo

0.0 0.0 0.0 84 KB

License: MIT License

Shell 0.99% CSS 7.75% TypeScript 15.89% HTML 12.99% Python 62.38%

testingrepo's Introduction

Django-React-Typescript-Vite Starter Template

Stack

  • React - A JavaScript library for building user interfaces.
  • Django - Django makes it easier to build better web apps more quickly and with less code.
  • Vite - Next Generation Frontend Tooling
  • Typescript - JavaScript with syntax for types.

Project structure

$PROJECT_ROOT
│   
├── web # backend file
│   
├── frontend # React files
│   
├── web/templates # Django Templates
│   
├── web/static-dev # Django Static Files

Get the Code

For Backend

  • Clone Repo
mkdir django_react
cd django_react
git clone https://github.com/Arvind-4/django-react-typescript-webpack.git .
  • Create Virtual Environment for Python
pip install virtualenv
python -m venv .
  • Activate Virtual Environment
source bin/activate
  • Install Dependencies
pip install -r requirements.txt

NOTE: To Install Latest Dependencies run command
pip install -r required.txt

  • Install Dependencies (For Poetry)
poetry install
  • Make Migrations
python manage.py makemigrations
python manage.py migrate
  • Run Server
python manage.py runserver

For Frontend

  • Install Dependencies
cd frontend/
yarn
  • Run Vite
yarn dev

NOTE: To Use Django & React in With hot reload in Django Templates Run:

cd web/
python manage.py runserver

and

cd frontend/
yarn dev

testingrepo's People

Contributors

edsawma avatar

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.