aligorithm / allnigeria-api

This API provides needed structured national data for use by developers starting with Nigerian States, LGAs, Wards and Polling Units

Home Page:https://allnigeria-api.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

allnigeria-api

This API aims to provide needed structured national data for use by developers

This API aims to provide needed structured national data for use by developers and other individuals or organisations. For now, data available includes all states, LGAs, Wards and Polling units correctly structured with the hierarchy. Feel free to use or contribute. Data is also provided as .sql or JSON:

JSON download

SQL download

How to use

Consume the api

https://allnigeria-api.herokuapp.com

Setup

  • Run composer install
  • Set DB_DATABASE to the name of your SQLite database file (which should be located in the database directory)
  • Run php artisan migrate:fresh --seed to load the data
  • Run php artisan serve to start the development server

You can download the SQL file here

Contact Info

If you have any other enquiries or you just want to link up, follow me on twitter

About

This API provides needed structured national data for use by developers starting with Nigerian States, LGAs, Wards and Polling Units

https://allnigeria-api.herokuapp.com

License:MIT License


Languages

Language:PHP 81.5%Language:Stylus 14.8%Language:Blade 2.5%Language:Shell 0.7%Language:Vue 0.5%Language:Procfile 0.0%