GreenRise is a web application dedicated to facilitating donations for environmental causes. We connect users with impactful events and provide a secure platform for contributing to a greener future.
- Laravel as the backend framework.
- Inertia.js for a seamless server-side rendered single-page application experience.
- React for building user interfaces.
- Tailwind CSS for styling.
- MySQL as the database.
- Midtrans for payment processing.
- PHP and Composer installed on your machine.
- Node.js and npm (or bun, yarn, pnpm, etc.) installed.
- Clone Repository:
git clone https://github.com/reynaldomarchell/greenrise.git
- Install PHP Dependencies:
composer install
- Install JavaScript Dependencies:
npm install
- Setup Database:
Create a MySQL database and configure the connection in your .env
file. Then run migrations + seeder:
php artisan migrate --seed
- Generate Key:
php artisan key:generate
- Link Storage:
php artisan storage:link
- Start Development Server:
Start both the Laravel and frontend development servers:
php artisan serve
npm run dev
- Access Application:
Open http://localhost:8000/ or your configured development URL in your browser. You can use the following default account or create your own account.
#Admin
Email: [email protected]
Password: admin
#User
Email: [email protected]
Password: user
Ensure you have a valid .env
file with the following variables (replace placeholders with your actual values):
APP_NAME=GreenRise
APP_ENV=local
APP_KEY=YOUR_APP_KEY
APP_DEBUG=true
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_user
DB_PASSWORD=your_database_password
MIDTRANS_SERVER_KEY=YOUR_MIDTRANS_SERVER_KEY
MIDTRANS_CLIENT_KEY=YOUR_MIDTRANS_CLIENT_KEY
MIDTRANS_IS_PRODUCTION=false
MAIL_MAILER=smtp
MAIL_HOST=YOUR_MAIL_HOST
MAIL_PORT=YOUR_MAIL_PORT
MAIL_USERNAME=YOUR_MAIL_USERNAME
MAIL_PASSWORD=YOUR_MAIL_PASSWORD
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=YOUR_FROM_EMAIL
MAIL_FROM_NAME="${APP_NAME}"
- Landing Page (/): Browse featured and upcoming events.
- Login/Register: Create an account or log in to donate.
- Events (/events): View all events and filter by participation.
- Event Details (/events/id): View event details and make a donation.
- Dashboard (/dashboard): View donation history and statistics.
- Admin Dashboard (/admin): (For administrators) Manage events.
- Browse Events: Discover various environmental initiatives.
- Secure Donations: Make secure donations via Midtrans.
- Donation History: Track your contributions.
- Event Management: (For administrators) Create, edit, and delete events.
- User Authentication: Secure user accounts and login.