royalmitten / assess-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quickstart

  • From within this directory, bring up the docker containers
    docker-compose up --build

  • Follow the instructions in the ./api/readme.md and ./app/readme.md to run service specific setup like installing the dependencies and running the migrations

  • Browse to http://app.localtest.me:8080/

Overview

This project is a very simple web app for managing a list of books. There are 2 pages

The books are retrieved and created via an API that at http://api.localtest.me:8080/. All the endpoints return a json body:

Basic Architecture

This app consists of 2 separate codebases contained in 1 repo. The /app codebase handles the web frontend and the /api codebase handles for data retrieval and creation. Each codebase is entirely self contained and does not share code with the other. They can only communicate over http.

The entry point into each app is /[app|api]/public/index.php. All this file does is require the composer autoloader and a /[app|api]/src/routes.php file.

The routes.php file boots up Slim Framework v3 and defines the routes for each codebase.

About


Languages

Language:PHP 99.1%Language:Dockerfile 0.9%