This repository provides a simple registration application built using ReactJS with Vite for the frontend, Django for the backend, and MySQL for the database. Follow the instructions below to get started.
- Node.js installed on your machine
- Python installed on your machine
- MySQL database server installed and running
-
Clone the repository:
git clone https://github.com/KKBUGHUNTER/Getting-start-React-vite-Django-MySQL.git cd Getting-start-React-vite-Django-MySQL
-
Install frontend dependencies:
npm install npm install axios
-
Set up a virtual environment for Django and activate it:
virtualenv env source env/bin/activate
-
Install backend dependencies:
pip install django djangorestframework django-cors-headers mysqlclient
-
Perform database migrations:
python manage.py makemigrations python manage.py migrate
-
Start the Django server:
python manage.py runserver
-
Start the frontend development server:
npm run dev
Once both the Django server and the frontend development server are running, you can access the application through your web browser. The registration form should be available, allowing users to register by providing their details.
- Make sure your MySQL database server is running and accessible before running the Django migrations.
- For production deployment, ensure to configure appropriate settings for security, database connections, and other necessary configurations.
- Feel free to customize and extend the application according to your requirements.
Enjoy using the Simple Registration Application! If you encounter any issues or have any questions, don't hesitate to reach out to the repository owner.