Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajddcatoria/daily.vote
The Daily.vote is a voting application where users can create polls, vote on options, and comment on polls. Users can only vote once per poll, and voting is restricted to 24 hours after the poll is created.
https://github.com/ajddcatoria/daily.vote
inertiajs laravel react typescript
Last synced: about 2 months ago
JSON representation
The Daily.vote is a voting application where users can create polls, vote on options, and comment on polls. Users can only vote once per poll, and voting is restricted to 24 hours after the poll is created.
- Host: GitHub
- URL: https://github.com/ajddcatoria/daily.vote
- Owner: AjDDcatoria
- Created: 2024-08-22T04:52:51.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-22T04:55:53.000Z (5 months ago)
- Last Synced: 2024-08-22T05:49:25.665Z (5 months ago)
- Topics: inertiajs, laravel, react, typescript
- Language: PHP
- Homepage:
- Size: 0 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Daily.Vote
**Daily.Vote** is a voting application where users can create polls, vote on options, and comment on polls. Users can only vote once per poll, and voting is restricted to 24 hours after the poll is created.
## Features
- **Create Polls**: Users can create polls with multiple options.
- **Vote**: Users can vote on poll options. Voting is restricted to 24 hours after the poll is created.
- **Comment**: Users can comment on polls to discuss the options.
- **Single Vote**: Users can only vote once per poll.## Tech Stack
- **Backend**: Laravel
- **Frontend**: React with TypeScript
- **Inertia.js**: To manage server-side rendering and frontend routing## Prerequisites
- **PHP >= 8.1**
- **Composer**
- **Node.js >= 18.x** and **npm** or **yarn**
- **MySQL/MariaDB/PostgreSQL** (or any other database supported by Laravel)## Installation
1. **Clone the repository**
```bash
git clone [email protected]:AjDDcatoria/Daily.vote.git
cd daily-vote```
2. **Install backend dependencies**
```bash
composer install
```3. **Install frontend dependencies**
```bash
npm install
```4. **Create a .env file**
Copy the example .env file and configure your environment variables, especially the database settings.```bash
cp .env.example .env
```Open the .env file and update the database settings:
```js
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE="Yout database name"
DB_USERNAME=root
DB_PASSWORD=secret
```5. **Generate an application key**
```bash
php artisan key:generate
```
6. **Access the application**
Open your browser and navigate to http://localhost:8000.