Donation-App is a platform designed to facilitate donations for various causes and organizations. This application allows users to view ongoing campaigns, make donations, and track their contribution history.
- User Authentication: Secure user registration and login functionality.
- Campaign Listings: Browse and search for active donation campaigns.
- Donations: Easily donate to desired campaigns using various payment methods.
- Donation History: View and manage donation history.
- Admin Dashboard: Manage campaigns, users, and donations.
- Frontend: JSP, JavaScript, HTML5, CSS3
- Backend: Java, JSP, Servlets
- Database: MySQL
- Application Server: Apache Tomcat
- Payments: Stripe API
-
Clone the repository:
git clone https://github.com/your-username/Donation-App.git
-
Navigate to the project directory:
cd Donation-App
-
Configure the MySQL database:
- Create a database named
donation_app
. - Import the provided SQL script to set up the database schema and initial data.
mysql -u your_username -p donation_app < path/to/your_sql_script.sql
- Create a database named
-
Update the database configuration in the project:
- Update the database connection details in
db.properties
or the equivalent configuration file.
- Update the database connection details in
-
Deploy the application on Apache Tomcat:
- Copy the
Donation-App
project directory to thewebapps
directory of your Tomcat installation. - Start the Tomcat server.
- Copy the
-
Start the Tomcat server:
- Navigate to the
bin
directory of your Tomcat installation.
./startup.sh
- Navigate to the
-
Open your web browser and navigate to
http://localhost:8080/Donation-App
to view the application.
Ensure that the following environment variables are set for the application to connect to the database and payment gateway:
DB_URL=jdbc:mysql://localhost:3306/donation_app
DB_USERNAME=your_db_username
DB_PASSWORD=your_db_password
STRIPE_SECRET_KEY=your_stripe_secret_key