{"id":18266036,"url":"https://github.com/victorfleite/wwalerts-backend","last_synced_at":"2026-04-13T17:33:49.462Z","repository":{"id":175570208,"uuid":"97637218","full_name":"victorfleite/wwalerts-backend","owner":"victorfleite","description":"Open source spatial and geographic platform to create and show the last severe alerts based on CAP (Common Alert Protocol). Front-end (Twitter Bootstrap, Javascript, JQuery) and Back-end (Php, Yii2, Postgres, Postgis, Restful, Api, Json). This platform have been created to help the meteorologic agencies to predict severe events and create CAP.","archived":false,"fork":false,"pushed_at":"2018-07-13T18:09:00.000Z","size":15142,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T01:47:17.194Z","etag":null,"topics":["alert","alerts","geographic","insert","json-api","oop","php","postgresql","prediction","security","spatial","wheather","wheather-app","wmo","yii2"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/victorfleite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-18T19:43:35.000Z","updated_at":"2025-03-04T05:29:00.000Z","dependencies_parsed_at":"2023-09-17T23:00:15.792Z","dependency_job_id":null,"html_url":"https://github.com/victorfleite/wwalerts-backend","commit_stats":null,"previous_names":["victorfleite/wwalerts-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/victorfleite/wwalerts-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorfleite%2Fwwalerts-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorfleite%2Fwwalerts-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorfleite%2Fwwalerts-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorfleite%2Fwwalerts-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victorfleite","download_url":"https://codeload.github.com/victorfleite/wwalerts-backend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorfleite%2Fwwalerts-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31762600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alert","alerts","geographic","insert","json-api","oop","php","postgresql","prediction","security","spatial","wheather","wheather-app","wmo","yii2"],"created_at":"2024-11-05T11:21:18.463Z","updated_at":"2026-04-13T17:33:49.445Z","avatar_url":"https://github.com/victorfleite.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WWALERTS\n\nThis project is a platform + api to create alerts of severe events of meteorology. Its also creates the CAP (v1.2) files ([Common Alert Protocol](http://docs.oasis-open.org/emergency/cap/v1.2/CAP-v1.2-os.html))\n\n## INSTALLATION\n\nCreate a new repository\n\n    1. $ git clone git@github.com:victorfleite/wwalerts-backend.git wwalert\n\nInstall Composer. For [more](https://getcomposer.org/doc/).\n\n\t2. $ curl -sS https://getcomposer.org/installer | php\n\t3. $ sudo mv composer.phar /usr/local/bin/composer\n\t4. $ sudo chown -fR yourUser:root /usr/local/bin/composer\n\t5. $ sudo composer global require \"fxp/composer-asset-plugin:^1.3.1\"\nUpdate Composer\n\n    6. $ cd yourFolderName\n    7. $ composer update\n    8. Create your local database\n    \n```php\n9. Set the database configuration on common/config/main-local.php\n\u003c?php\nreturn [\n    'components' =\u003e [\n        'db' =\u003e [\n            'class' =\u003e 'yii\\db\\Connection',\n            'dsn' =\u003e 'pgsql:host=localhost;dbname=databasename',\n            'username' =\u003e 'postgres',\n            'password' =\u003e 'postgres',\n            'charset' =\u003e 'utf8',\n        ],\n        ...\n    ],\n];\n```\n    10. $ sudo chmod 777 /var/www/html/yourFolderName/backend/web/assets\n\n## USAGE    \n\nAccess you application on `http://localhost/wwalert`\n\nInsert the username: victor.leite\n\nInsert the password: mypassword\n\nLogin into the system (You have the administrator role)    :-)\n\n\n### EXEMPLE API CALLS\n-------------------\n\n```\n1. Token access required\ncurl -i -H \"Accept:application/json\" -H \"Content-Type:application/json\" \"http://localhost/yourFolderName/service/api/www/index.php/oauth2/token\" -XPOST \\\n-d '{\"grant_type\":\"password\",\"username\":\"victor.leite@gmail.com\",\"password\":\"mypassword\",\"client_id\":\"myclientId\",\"client_secret\":\"mySecretPassword\"}'\n\n2. Token access required with scope\ncurl -i -H \"Accept:application/json\" -H \"Content-Type:application/json\" \"http://localhost/yourFolderName/service/api/www/index.php/oauth2/token\" -XPOST \\\n-d '{\"grant_type\":\"password\",\"username\":\"victor.leite@gmail.com\",\"password\":\"mypassword\",\"client_id\":\"myclientId\",\"client_secret\":\"mySecretPassword\",\"scope\":\"custom\"}'\n\n3 - User data required\ncurl -i -H \"Accept:application/json\" -H \"Content-Type:application/json\" \"http://localhost/yourFolderName/service/api/www/index.php/v1/user/get-user?access_token={TOKEN_GERADO_NA_AUTENTICACAO}\"\n```\n\t\n## CONTRIBUTION\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## HISTORY\n\nI decided to create this project to help people to accelerate the proccess to create application and services/api rest in the same project.\n\n## CREDITS\n\n[mdmsoft/yii2-admin](https://github.com/mdmsoft/yii2-admin)\n\n[filsh/yii2-oauth2-server](https://github.com/Filsh/yii2-oauth2-server)\n\n[mootensai/yii2-enhanced-gii](https://github.com/mootensai/yii2-enhanced-gii)\n\n\n## LICENCE\n\nThe MIT License\n\n===============================\n\n## DIRECTORY STRUCTURE\n-------------------\n\n```\nbackend\n    assets/              contains application assets such as JavaScript and CSS\n    config/              contains backend configurations\n    controllers/         contains Web controller classes\n    models/              contains backend-specific model classes\n    runtime/             contains files generated during runtime\n    tests/               contains tests for backend application    \n    views/               contains view files for the Web application\n    web/                 contains the entry script and Web resources\n    widgets/             contains widgets for the Web application\ncommon\n    config/              contains shared configurations\n    mail/                contains view files for e-mails\n    models/              contains model classes used in both backend and frontend\n    tests/               contains tests for common classes    \nconsole\n    config/              contains console configurations\n    controllers/         contains console controllers (commands)\n    migrations/          contains database migrations\n    models/              contains console-specific model classes\n    runtime/             contains files generated during runtime\nservice    \n    api/common/\t\t contains controllers or models commons for api application\n    api/components/\t contains components that could be inherited by classes and controllers in each version (ex: versions/v1)\n    api/config/\t\t contains shared configurations\n    api/versions/\t versions of application\n    api/www/\t\t initial folder for application\nvendor/              contains dependent 3rd-party packages\n```\n\n===============================\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorfleite%2Fwwalerts-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorfleite%2Fwwalerts-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorfleite%2Fwwalerts-backend/lists"}