Skip to content

atudorcarsin/django-react-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-react-boilerplate

Overview

This is a boilerplate for a Django backend with a React frontend. It is designed to be a starting point for a full-stack web application. Session based authentication is already implemented, so you don't need to worry about it. With efficiency and simplicity in mind, this boilerplate is perfect for a quick start to any website project.

Technologies used:

Setup

Disclaimer: The installation steps below have only been tested for Unix-based systems. If you are using Windows, they are not guaranteed to work.

Prerequisites:
- Git
- Python - Version 3
- Node.js
- pnpm (Used for installing node packages, but you should also be able to use npm or yarn)

  1. Clone the repository
git clone https://github.com/atudorcarsin/django-react-boilerplate.git
cd django-react-boilerplate
  1. Set up the backend
cd backend
python3 -m venv venv
source venv/bin/activate  # If you are using Windows, check the Python venv documentation for activating the virtual environment 
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser  # This command is required to create an admin user
python manage.py runserver
  1. Set up the frontend. Open a new terminal in the root directory of the project and run the following commands:
cd frontend
pnpm install
pnpm run dev

That's it! The Vite server should be listening on its configured address and port (check terminal for details). If you want to access the Django admin panel, go to the configured url for Django (should also be displayed when you start the Django server) and log in with the superuser credentials you created earlier.

You can now use this boilerplate as the foundation for your web application.

Contributing

If you have any suggestions or improvements, feel free to open an issue or a pull request.

About

Boilerplate for easy development with Django and React

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors