Lumen-powered backend for api.canitext911.us.
- Basic Lumen requirements
- PHP >= 7.1.3
- Postgres
# database config
DB_CONNECTION=pgsql
DATABASE_URL=postgres://username:password@host:5432/database
# service endpoints
CIT_IP_LOCATION_ENDPOINT='http://ip-api.com/json/${IP_ADDR}'
CIT_TEXT_REGISTRY_ENDPOINT='https://www.fcc.gov/file/12285/download'
# install dependencies
composer install
# run migrations
php artisan migrate
# fetch psap registry
php artisan psap:index
# serve
php -S localhost:8000 -t public
Thanks for considering contributing! Please open an issue prior to submitting any pull requests.
This project is open-sourced software licensed under the MIT license.