Lara-Poll is a web application that combined many of my previous' projects into one. After registration & logging in you can browse currently ongoing polls in real-time, vote, create your own polls and even receive real-time notifications when polls finish. The polling data of each poll is also updated in real-time. The whole project it glued together using Laravel and front-end is created with VueJS. The application supports both dark and light mode depending on user's browser settings.
First you need to clone the repository.
git clone https://github.com/svareX/lara-poll
Then install all the package and dependencies.
composer install
After that you need to setup an .env file (use the .env.example as a template)
copy .env.example .env
Generate a new application key
php artisan key:generate
Install front-end packages
npm install
Compile front-end assets in real-time
npm run dev
Now, you must leave this terminal window running and open a new one!
Create your database table.
php artisan migrate
While you have a local database server like XAMPP Then all you need to do is to start a local Laravel server.
php artisan serve
Now, you must leave this terminal window running and open a new one!
Start the scheduler.
php artisan schedule:work
MIT License
Copyright (c) [2023]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.