Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sccity/firecommand

Repository files navigation

SantaClaraHub

A Laravel-based web application for Santa Clara City employees, providing centralized access to various department tools and features.

Features

  • User Authentication with Laravel Breeze
  • Role-based Access Control using Spatie Permissions
  • Fire Department Command Center
    • Real-time Active Fire Incidents
    • Unit Status Tracking
    • Unit Location Updates
  • Administrative Tools
    • Finance Management
    • User Management

Requirements

  • PHP 8.1 or higher
  • Composer
  • Node.js & NPM
  • SQLite or MySQL

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/SantaClaraHub.git
cd SantaClaraHub
  1. Install PHP dependencies:
composer install
  1. Install and compile frontend dependencies:
npm install
npm run dev
  1. Configure environment:
cp .env.example .env
php artisan key:generate
  1. Configure your database in .env:
DB_CONNECTION=sqlite
DB_DATABASE=/absolute/path/to/database.sqlite
  1. Run migrations:
php artisan migrate
  1. Seed the database (optional):
php artisan db:seed

API Configuration

The application uses the Spillman API for fire incident data. Configure your API token in .env:

SPILLMAN_API_TOKEN=your_token_here

Development

To start the development server:

php artisan serve

For hot-reloading of assets:

npm run dev

Testing

Run the test suite:

php artisan test

License

This project is proprietary software for Santa Clara City.

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published