GithubHelp home page GithubHelp logo

rodzy / autotheater-server Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 819 KB

๐Ÿ—ƒ REST API for the AutoTheater app using Laravel version 7 and PostgreSQL

License: MIT License

PHP 97.84% Shell 0.45% Blade 1.71%
php laravel backend api-rest laravel-7 jwt postgresql

autotheater-server's Introduction

Auto Theater server ๐ŸŽช

Auto theater server is an REST API build with Laravel 7.x and specifically done for an auto cinema application.

Set up

Prerequisites

  1. PHP 7.2+
  2. Composer (a dependency manager for PHP)
  3. PostgreSQL 9.5+

Installation

  1. fork the repository to your account.
  2. clone your fork into your local machine.
  3. cd autotheater-server on your terminal.
  4. Run composer install on your terminal to get all the dependecies used.
  5. Setup your database environment keep in mind that this server was made using PostgreSQL in mind
    Here's a quick example of the database connection on the .env file
    DB_CONNECTION=pgsql
    DB_HOST=127.0.0.1
    DB_PORT=5432
    DB_DATABASE=autotheater
    DB_USERNAME= <your-username>
    DB_PASSWORD= <password>
    
  6. Run composer dump-autoload to generate optimized files.
  7. Once your environment is all setup, run the migrations and seeders.
php artisan migrate:refresh --seed
  1. Run php artisan serve, and you're ready to go server must be online on http://127.0.0.1:8000/.

Data structure

The current data structure is composed by:

  • Roles
  • Users
  • Genres
  • Classifications (Movies)
  • Movies
  • Likes (Movies)
  • Locations
  • Billboards
  • Product_Types
  • Classification_Products (Products)
  • Products
  • Rating (Products)
  • Tickets
  • Reservations

Diagram to understand the basic flow of the aplication, some tables are not in the current data structure Misc:

๐Ÿ”ต Primary Keys ๐ŸŸ  Foreign keys ๐ŸŸข Dynamic API types for the frontend โšช Basic fields.

License

AutoTheater is licensed under the MIT license.

autotheater-server's People

Contributors

dependabot[bot] avatar rodzy avatar

Stargazers

 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.