Giter Site home page Giter Site logo

authorizer's Introduction

Authorizer

About the project

This project is about an application that authorizes transactions for a specific account following a series of predefined rules.

Read this in other language: Português

Development

Below is what was used in the development of this project:

  • PHP - PHP is a free interpreted language, originally used only for the development of server-side applications;
  • Docker - Docker is a set of platform-as-a-service products that use OS-level virtualization to deliver software in packages called containers.;

Getting Started

Prerequisites

To run the project you need to have docker installed, or if you want to run without a container, PHP will be needed.

Running the project

1. With Docker

To run the application using docker just navigate to the root folder and execute the following command:

docker build -t my-php-app .
docker run -it my-php-app php authorizer run

Tests

To run the application tests, simply navigate to the root folder and execute the following command:

docker run -it my-php-app php authorizer test

2. Without Docker

Execution

To run the application, simply navigate to the root folder and execute the following command:

php authorizer run

Tests

To run the application tests, simply navigate to the root folder and execute the following command:

php authorizer test

Project structure

  • src - Base directory that contains the classes necessary for the application operation;

    • Account - Directory responsible for storing classes that handle account type operations;
    • Database - Directory responsible for storing classes that handle the state of the operation, managed in memory;
    • Operation - Directory responsible for storing classes that manage operations, regardless of type;
    • Support - Directory responsible for storing classes with common functionality, but that do not have special designation in the general architecture of the application;
    • Account - Directory responsible for storing classes that handle transaction-type operations;
  • tests - Directory responsible for storing the classes needed to perform application tests;

    • AccountTest - Directory responsible for storing classes that handle tests in account type operations;
    • operationsTest - Directory responsible for storing all operations files used in the application's test classes;
    • TestCase - Directory responsible for storing all classes that manage application test cases;
    • TransactionTest - Directory responsible for storing classes that handle tests in transaction-type operations;

authorizer's People

Contributors

m3ndes avatar

Watchers

 avatar  avatar

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.