This project is a full-stack application that combines Django and React to create a Random Number Generator (RNG) with user input. The user provides an input (like a name, a phrase, or any kind of text), and the application uses this input to generate a random seed that can then be used to generate random numbers.
- User provides an input (e.g., a name, phrase, or any text).
- React sends this input to the Django backend.
- The backend uses this input to generate a random seed.
- The frontend displays random numbers generated from that seed.
- Django receives the user input from the frontend.
- Using the input, it generates a random seed using Python’s random module.
- Django sends the generated random number(s) back to the frontend.
- Python
- Node.js
- Django
- React
- pip (Python package installer)
- npm (Node package manager)
-
Navigate to the project directory:
cd rng_project -
Install Django and Django REST Framework:
pip install django djangorestframework
-
Run database migrations:
python manage.py migrate
-
Start the Django development server:
python manage.py runserver
-
Navigate to the frontend directory:
cd frontend -
Install the npm packages:
npm install
-
Start the React development server:
npm start
Now, your React app should be available at http://localhost:3000, and your Django backend at http://localhost:8000.
This project is licensed under the MIT License. See the LICENSE file for details.