Verifier is a web application based on Laravel that provides a backend endpoint POST /api/verifications
. The endpoint accept a JSON file and verify the file based on certain rules.
Go to your desired folder locally, and run git clone [repo_url]
.
Ensure that php
and composer
are available, then run composer install
to install the dependencies.
Copy .env.example
into .env
and configure desired settings.
Run php artisan key:generate
to generate application key.
Run php artisan test
to verify the basic setup.
Create database/database.sqlite
file and run php artisan migrate
to initialise database.
Run php artisan db:seed
to seed a sample user.
Run php artisan serve
to start the web server. The URL http://localhost/api/verifications
is ready to use, e.g. curl http://localhost:8000/api/verifications -X POST -H "Accept: application/json" -H "Authorization: Bearer [token]" -F "file=@[path_to_sample_json_file]"