Skip to content

temur0212/Voting_system

Repository files navigation

🗳️ Voting System 🗳️

A robust voting system built with Laravel.


📦 Installation

🔧 Requirements

Ensure your system meets the Laravel Server Requirements.


🌀 Clone the Repository

Run the following command to clone the repository into your desired directory:

git clone https://github.com/temur0212/Voting_system.git [YourDirectoryName]

⚙️ Install PHP Dependencies

Move into the project directory and install all required PHP dependencies:

cd YourDirectoryName
composer install

🛠️ Configuration

  1. Create .env file Copy the .env.example file to .env:
cp .env.example .env

2.Generate Application Key Run the following command to generate the app key:

php artisan key:generate
  1. 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
  1. 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/callback

📂 Database Setup

Run 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 install

Then, build the assets for development:

npm run dev

For production builds:

npm run build

Add information to the database

php artisan db:seed

Admin user information for testing

email: test@example.com

password : test123


🚀 Run the Application

Start the Laravel development server:

php artisan serve

Open your browser and visit:

http://localhost:8000

📸 Screenshots

Questionnaires

Dashboard Screenshot

Create a survey

Create page Screenshot

Personal Surveys

Create page Screenshot


❤️ Contributions

Feel free to contribute to this project. Fork, star, or submit a pull request to help us improve! 😊

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages