Placetogrow is a platform that allows administrators to create and manage microsites for different types of payments (invoices, subscriptions, donations), and enables users to make payments in a simple and secure manner.
- PHP 8.2
- Laravel 11.0
- MySQL 8.0
- InertiaJs with Vue 3.4.0 and TypeScript 5.0.2
- Tailwind CSS 3.2.1
- Headless UI 1.7
-
Clone the repository:
git clone https://github.com/MiguelBa1/placetogrow
-
Create the
.env
file from the.env.example
file:cp .env.example .env
-
Configure the necessary information in the
.env
file. Make sure to set the following variables:DB_CONNECTION
DB_HOST
DB_PORT
DB_DATABASE
DB_USERNAME
DB_PASSWORD
ADMIN_NAME
ADMIN_EMAIL
ADMIN_PASSWORD
P2P_LOGIN
P2P_SECRET_KEY
P2P_URL
-
Run
composer install
to install the dependencies. -
Run
php artisan key:generate
to set theAPP_KEY
value in the.env
file. -
Run
php artisan storage:link
to make the images available to the application. -
Run
php artisan migrate:fresh --seed
to create the database tables and seed the database. -
Run
php artisan serve
to start the application. -
Run
npm install
andnpm run dev
to compile the assets.
Note: To use the image manipulation features in the application, the PHP gd
extension must be enabled. Please ensure that this extension is enabled on your server.
To access the admin panel, you need an admin user. You can create this user in one of the following ways:
- By filling in the admin user variables in the
.env
file as mentioned above. - By running the following artisan command:
php artisan create:admin {name} {email} {password}
This command allows you to directly create an admin user with the specified name, email, and password.
The system commands are defined in the routes/console.php
file.