GForms is a form creation project designed for surveys, allowing users to dynamically create forms based on their needs and share them with others, similar to Google Forms.
- Laravel: Backend framework
- Tailwind CSS: CSS framework
- AlpineJS: Lightweight JavaScript framework
- PHP: Version 8.0
- Node.js: Version 20 or lower
git clone https://github.com/kishangareja0012/g-forms.git
cd g-forms
Install PHP dependencies:
composer install
Install Node.js dependencies:
npm install
Create a copy of the .env.example
file:
cp .env.example .env
Generate the application key:
php artisan key:generate
Edit the .env
file to set up your database connection:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=gforms
DB_USERNAME=root
DB_PASSWORD=your_password_here
Run the following command to create the necessary database tables and populate them with initial data:
php artisan migrate --seed
In one terminal, start the Laravel server:
php artisan serve
In another terminal, compile the frontend assets:
- For development:
npm run dev
- To watch for changes:
npm run watch
- For production:
npm run prod
To create an admin user, run the following command:
php artisan db:seed --class=CreateAdminSeeder
You are now ready to start using GForms! Visit http://localhost:8000
in your browser to access the platform.