Giter Club home page Giter Club logo

my-cinema's Introduction

My Cinema

tests

My Cinema is an REST API for managing a cinema created with PHP 8, Symfony 6 and FOSRestBundle 3

JetBrains support

This project is supported by JetBrains via its OpenSourceSupport initiative

Demo

Live demo is available here

OpenAPI documentation can be found here

Project overview

  • CRUDs for Genres, Halls, Movies and Shows: 4 services, 4 entities and 4 controllers
  • 16 endpoints with documentation in OpenAPI format via NelmioApiDocBundle
  • 75 unit and integration tests (187 assertions)
  • Authentication via LexikJWTAuthenticationBundle and authorization support (WIP)
  • Sensible data fixtures implemented with ZenstruckFoundryBundle
  • Live version API and documentation, deployed on Heroku
  • GitHub Actions CI support
  • Local docker development support (WIP)

Local setup and development

Requirements

Setup instructions

  1. Download project: $ git clone https://github.com/Heaven31415/my-cinema.git

  2. Change to its directory: $ cd my-cinema

  3. Create local .env files:

    • $ cp .env .env.local
    • $ cp .env.test .env.test.local
  4. Configure the value of DATABASE_URL environment variable in .env.local and .env.test.local files (its value should be identical in both files) so you can connect to your PostgreSQL server

  5. Run $ bin/setup bash script to install project dependencies and setup main and test databases

Run development server

$ symfony serve

Run tests

$ bin/phpunit

View API docs

Start development server, open your browser and visit this link to see the docs

Heroku deployment

  • Add a new commit to the master branch
  • git push heroku master
  • heroku run php bin/console doctrine:migrations:migrate --no-interaction

my-cinema's People

Contributors

heaven31415 avatar

Watchers

 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.