A robust voting system built with Laravel.
Ensure your system meets the Laravel Server Requirements.
Run the following command to clone the repository into your desired directory:
git clone https://github.com/temur0212/Voting_system.git [YourDirectoryName]Move into the project directory and install all required PHP dependencies:
cd YourDirectoryName
composer install- Create
.envfile Copy the.env.examplefile to.env:
cp .env.example .env2.Generate Application Key Run the following command to generate the app key:
php artisan key:generate- Set Database Credentials Open the .env file and update the database configuration as follows:
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- Write them in the .env file to configure signing in with Google:
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
GOOGLE_REDIRECT_URI=http://your-app-url/login/google/callbackRun the migration command to create the necessary database tables:
php artisan migrate###📦 Install Node Dependencies If your project uses frontend assets (like Vue.js, React, or SCSS), install the Node.js dependencies:
npm installThen, build the assets for development:
npm run devFor production builds:
npm run buildphp artisan db:seedemail: test@example.com
password : test123
Start the Laravel development server:
php artisan serveOpen your browser and visit:
http://localhost:8000
Feel free to contribute to this project. Fork, star, or submit a pull request to help us improve! 😊


