GithubHelp home page GithubHelp logo

verifier's Introduction

Verifier

Overview

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.

How to run locally

1. Clone the repo

Go to your desired folder locally, and run git clone [repo_url].

2. Install dependencies

Ensure that php and composer are available, then run composer install to install the dependencies.

3. Prepare local .env file

Copy .env.example into .env and configure desired settings.

4. Generate application

Run php artisan key:generate to generate application key.

5. Run tests

Run php artisan test to verify the basic setup.

6. Initialise database

Create database/database.sqlite file and run php artisan migrate to initialise database.

7. Seed sample user

Run php artisan db:seed to seed a sample user.

8. Run web server

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]"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.