This is a simple user registration web application built with React for the frontend and Flask for the backend. Users can fill in their registration information, and the app will process this data, generate a PDF report, and send it to their email.
Before running the project, make sure you have the following prerequisites installed:
- Node.js: You need Node.js to run the frontend.
- Python: You need Python to run the backend.
- R: You need R for age calculation in the backend (if you haven't already installed it).
To run the frontend, follow these steps:
- Navigate to the
frontend
directory in your terminal.
cd frontend
- Install the required dependencies.
npm install
- Start the development server.
npm start
The frontend should be running on http://localhost:3000
.
To run the backend, follow these steps:
- Navigate to the
backend
directory in your terminal.
cd backend
- Install the required Python packages.
pip install flask
pip install flask_cors
pip install reportlab
pip install rpy2==3.5.1
- Start the Flask server.
flask run
The backend should be running on http://localhost:5000
.
- The
frontend
directory contains the React-based user interface. - The
backend
directory contains the Flask-based server and R scripts.
To configure email sending, create an email_info.py
file in the backend
directory. This file should include your email sender information and password. Example:
# email_info.py
# Sender's email address and password
sender = "your_email@gmail.com"
password = "your_password"
Replace "your_email@gmail.com"
and "your_password"
with your actual email and password.