Django and React fullstack practice by following this tutorial.
Django backend and React frontend.
-
Clone the repository:
git clone https://github.com/wangf1/fullstack_practice_django.git cd fullstack_practice_django/backend
-
Create a virtual environment:
python -m venv venv
Alternatively, you can use Conda to create a virtual environment. For more details, refer to the official Conda documentation.
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On Unix or macOS:
source venv/bin/activate
-
-
Install the dependencies:
pip install -r requirements.txt
Explain how to use your project. For example:
-
Run the development server:
python manage.py runserver
-
Access the application:
Open your web browser and go to
http://127.0.0.1:8000
.
python manage.py test