luisfn / oat-question-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

oat-question-api

Introduction

Dependencies

  • Docker
  • Docker-compose
  • composer
  • Ports 8000 and 8080 should be free

Running App Locally

From the root of the project, execute

composer install
docker-compose up -d

Switch questions source file

The path to the source file is defined on the .env file. To Switch to another source, just set its value

INPUT_FILE=../data/questions.json

To be improved

  • Add API Tests
  • Improve Unit Tests
  • Generate translated input files instead of translate the collections
  • Switch from the implemented parsers (csv/json) to normalizers
  • Include composer into docker image
  • Implement POST route (Not sure it was necessary since we are working on files)

Running tests

php bin/phpunit

Check code style

php vendor/bin/phpcs

Fix code style

php vendor/bin/phpcbf

About

License:MIT License


Languages

Language:PHP 99.4%Language:Dockerfile 0.6%