Skip to content

martinmendozadev/StateForce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

162 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Build Status License: GPL-2.0 Coverage Status Ruby Rails

🚨 StateForce

Real-time Emergency Resource Management

StateForce is a Ruby on Rails application designed to optimize emergency response operations and resources in real time. Originally developed for the Centro Regulador de Urgencias MΓ©dicas (CRUM) at the state level in Mexico, the system centralizes the management of medical, police, rescue, and fire department assets to reduce response times and improve coordination. It can also be adapted for use by any organization managing multiple emergency services.


πŸŽ₯ Demo

StateForce Demo

A quick look at real-time resource management in action.

Screenshots and more details available in the Wiki.


πŸ“š Table of Contents

  1. Demo
  2. Overview
  3. Quickstart
  4. Tech Stack
  5. Getting Started
  6. Development Tools
  7. Documentation
  8. Contributing
  9. Support
  10. Internationalization
  11. Credits & Acknowledgements
  12. License

πŸ”Ž Overview

StateForce empowers emergency services with a modern, reliable, and scalable platform for managing real-time resources such as ambulances, hospitals, rescue units, helicopters, and specialists. It features role-based access control, real-time updates, and seamless integration of data from public APIs.

The application is tailored for the Centro Regulador de Urgencias MΓ©dicas (CRUM) but can be customized to meet the needs of other emergency response organizations across different regions.


⚑ Quickstart

Want to try StateForce right now?

Visit stateforce.mx and log in


πŸ›  Tech Stack

  • Ruby 3.4.5 – Elegant, powerful backend language.
  • Rails 8.0.2.1 – Framework optimized for developer productivity and performance.
  • PostgreSQL 17 – Reliable, production-grade relational database.
  • Redis – Used for background jobs and caching.
  • TailwindCSS 4 – Utility-first CSS framework for rapid UI development.
  • Hotwire (Turbo + Stimulus) – For real-time, reactive frontend experiences.
  • Devise + OmniAuth – Secure authentication with email confirmation and Google login.
  • Sidekiq – Background job processing.
  • RuboCop – Code quality and style enforcement.

πŸš€ Getting Started

To run StateForce locally:

  1. Clone the Repository

    git clone git@github.com:martinmendozadev/StateForce.git
    cd StateForce
  2. Install Ruby

    Go to Doc

  3. Install Dependencies

    gem install bundler
    bundle install
  4. Set Up Environment Variables

    cp .env.example .env
  5. Set Up the Database

    bin/setup
  6. Start the Server

    bin/dev

    Visit http://localhost:3000 to start using the app.

    Test credentials Email: test@stateforce.mx Password: 123qweASD


🧰 Development Tools

  • Run Test Suite

    bin/rails test
  • Run Linter

    bin/rubocop
  • System Tests (Capybara + Selenium)

    bin/rails test:system

    Includes headless browser testing with screenshot support for failures.

  • Hot Reloading with Turbo

    Frontend changes are reflected instantly thanks to Hotwire.


πŸ“– Documentation

For full technical documentation, please visit the StateForce Wiki, which includes:

Core Topics


πŸ€— Contributing

We welcome contributions! Please read our CONTRIBUTING.md and CODE_OF_CONDUCT.md before submitting a pull request.

  • Open issues for bugs or feature requests.
  • Fork the repo and submit a pull request for improvements.

🀝 Support

If you run into issues or have questions:

πŸ“¬ martinmendozadev@gmail.com

We welcome contributions and feedback to improve StateForce for emergency services everywhere.


🌐 Internationalization

StateForce currently supports Spanish and English. The interface language is primarily Spanish, reflecting its main operational context. Future versions may include more robust multi-language support. For details on current capabilities, see the Wiki.


πŸ™ Credits & Acknowledgements

  • Developed by martinmendozadev
  • Inspired by the needs of emergency services professionals.
  • Built with Ruby on Rails, Hotwire, and the open source community.

πŸ“ License

This project is licensed under the terms of the GNU General Public License v2.0.

About

StateForce: Real-time Emergency Resource Management.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •