Giter Site home page Giter Site logo

theater-project's Introduction

Theater project

This is a theater API, designed to serve a theater's ongoing movies.

Prerequisites

Set up (for linux systems)

  1. Clone this repository using: git clone https://github.com/WictorT/adpage-theater.git

  2. cd adpage-theater

  3. Copy .env.dist into .env and configure as you are wiling(better keep default values).

  4. Run docker-compose build --no-cache to build images.

  5. Run docker-compose up to bring up your containers.

  6. Hope containers are up. If yes then run docker-compose exec php bash to enter container. Note: Next commands need to be run inside the container

  7. (inside php container) Generate the SSH keys for JWT:

    mkdir config/jwt
    openssl genrsa -out config/jwt/private.pem -aes256 4096
    openssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pem

    In case first openssl command forces you to input password use following to get the private key decrypted

    openssl rsa -in config/jwt/private.pem -out config/jwt/private2.pem
    mv config/jwt/private.pem config/jwt/private.pem-back
    mv config/jwt/private2.pem config/jwt/private.pem
    rm config/jwt/private.pem-back
  8. (inside php container) Run sh setup.sh if it is the first time you launched the project

You can now access the application here (by default): http://localhost

Launching tests

  • To launch tests tests run:
docker-compose exec php ./bin/phpunit
  • To launch tests with code coverage you can use:
docker-compose exec php ./bin/phpunit --coverage-html coverage

this will create some coverage files, to see the report open: coverage/index.xml,

Documentation

You can view the full API documentation here: here

Thank you!

Provided by Victor Timoftii

theater-project's People

Contributors

wictort avatar

Watchers

 avatar

Forkers

pacmad

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.