https://github.com/martinmendozadev/stateforce
StateForce: Real-time Emergency Resource Management.
https://github.com/martinmendozadev/stateforce
postgresql rails ruby tailwindcss
Last synced: 2 months ago
JSON representation
StateForce: Real-time Emergency Resource Management.
- Host: GitHub
- URL: https://github.com/martinmendozadev/stateforce
- Owner: martinmendozadev
- License: apache-2.0
- Created: 2024-11-11T23:32:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-09T02:45:41.000Z (about 1 year ago)
- Last Synced: 2025-05-09T03:31:38.552Z (about 1 year ago)
- Topics: postgresql, rails, ruby, tailwindcss
- Language: Ruby
- Homepage:
- Size: 182 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
[](https://github.com/martinmendozadev/StateForce/actions)
[](LICENSE)
[](https://codecov.io/gh/martinmendozadev/StateForce)
[](https://www.ruby-lang.org/)
[](https://rubyonrails.org/)
# π¨ 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

> _A quick look at real-time resource management in action._
_Screenshots and more details available in the [Wiki](https://github.com/martinmendozadev/StateForce/wiki)._
---
## π Table of Contents
1. [Demo](#-demo)
2. [Overview](#-overview)
3. [Quickstart](#-quickstart)
4. [Tech Stack](#-tech-stack)
5. [Getting Started](#-getting-started)
6. [Development Tools](#-development-tools)
7. [Documentation](#-documentation)
8. [Contributing](#-contributing)
9. [Support](#-support)
10. [Internationalization](#-internationalization)
11. [Credits & Acknowledgements](#-credits--acknowledgements)
12. [License](#-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](http://localhost:3000) 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**
```bash
git clone git@github.com:martinmendozadev/StateForce.git
cd StateForce
```
2. **Install Ruby**
[Go to Doc](https://www.ruby-lang.org/en/documentation/installation/)
3. **Install Dependencies**
```bash
gem install bundler
bundle install
```
4. **Set Up Environment Variables**
```bash
cp .env.example .env
```
5. **Set Up the Database**
```bash
bin/setup
```
6. **Start the Server**
```bash
bin/dev
```
Visit `http://localhost:3000` to start using the app.
> **Test credentials**
> Email: `test@stateforce.mx`
> Password: `123qweASD`
---
## π§° Development Tools
- **Run Test Suite**
```bash
bin/rails test
```
- **Run Linter**
```bash
bin/rubocop
```
- **System Tests (Capybara + Selenium)**
```bash
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](https://github.com/martinmendozadev/StateForce/wiki), which includes:
### **Core Topics**
- π [Home](https://github.com/martinmendozadev/StateForce/wiki/Home)
- π [Architecture Diagram](https://github.com/martinmendozadev/StateForce/wiki/Architecture-Diagram)
- π§© [DataBase](https://github.com/martinmendozadev/StateForce/wiki/DataBase)
- π¦ [Roles Definition](https://github.com/martinmendozadev/StateForce/wiki/Roles-Definition)
- β¨ [System Architecture](https://github.com/martinmendozadev/StateForce/wiki/System-Architecture)
- π [Testing Guide](https://github.com/martinmendozadev/StateForce/wiki/Testing-Guide)
- π€ [Users Flow](https://github.com/martinmendozadev/StateForce/wiki/Users-Flow)
- π¨ [Style Guide](https://github.com/martinmendozadev/StateForce/wiki/Style-Guide)
---
## π€ Contributing
We welcome contributions! Please read our [CONTRIBUTING.md](CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](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](mailto: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](https://github.com/martinmendozadev/StateForce/wiki).
---
## π Credits & Acknowledgements
- Developed by [martinmendozadev](https://github.com/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](LICENSE).