generalelection / allnigeria-api

This API aims to provide 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 or Send me an email

About

This API aims to provide 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 82.1%Language:CSS 14.9%Language:HTML 2.5%Language:Vue 0.5%