Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theihasan/vacine-registration-system
https://github.com/theihasan/vacine-registration-system
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/theihasan/vacine-registration-system
- Owner: theihasan
- Created: 2024-01-15T18:05:22.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-15T18:07:08.000Z (11 months ago)
- Last Synced: 2024-06-28T15:22:42.669Z (6 months ago)
- Language: PHP
- Size: 873 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Vaccine Registration System
The Vaccine Registration System is a Laravel project designed to manage two types of users: admin users and public users. Admin users have access to the
users
table, while public users are managed through thepublic_users
table.Requirements
- PHP >= 7.2
- Laravel 9+
Setup Instructions
- Clone the repository.
- Run
composer install
to install dependencies. - Copy the
.env.example
file to.env
and configure your database. - Run
php artisan key:generate
to generate an application key. - Run
php artisan migrate
to run database migrations. - Run
php artisan db:seed
to seed the database.
Database Seeding
- Running the
php artisan db:seed
command creates 100 public users and one admin user. - Admin user credentials:
- Route:
yourdomain/admin/login
- Email: [email protected]
- Password: 12345
- Admin users can view all public users from the dashboard.
- Route:
Features
Public User Registration
- Public users can register through the
/register
route. - Registration requires the following fields:
- Name
- Password
- National ID (NID)
- Phone
- Center Name (selected from a dropdown)
User Status Management
- Public users are assigned a default status of "not vaccinated" upon registration.
- Using Laravel queue and task scheduling, the
ScheduleUnvaccinatedUsersJob
class changes the status of users to "scheduled" and sends an email to notify them. - The
ResetVaccineCenterLimitJob
class runs daily to reset the limit of vaccination centers. - The
ProcessVaccinatedUsersJob
class changes the status to "vaccinated" if the scheduled date is less than or equal to the current date.
Screenshots
This is a admin login page overview
This is a User List page overview for admin user
This is a User List filter overview for admin user
This is a public users registration page overview