Auto theater server is an REST API build with Laravel 7.x and specifically done for an auto cinema application.
- PHP 7.2+
- Composer (a dependency manager for PHP)
- PostgreSQL 9.5+
fork
the repository to your account.clone
yourfork
into your local machine.cd autotheater-server
on your terminal.- Run
composer install
on your terminal to get all the dependecies used. - 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 fileDB_CONNECTION=pgsql DB_HOST=127.0.0.1 DB_PORT=5432 DB_DATABASE=autotheater DB_USERNAME= <your-username> DB_PASSWORD= <password>
- Run
composer dump-autoload
to generate optimized files. - Once your environment is all setup, run the migrations and seeders.
php artisan migrate:refresh --seed
- Run
php artisan serve
, and you're ready to go server must be online onhttp://127.0.0.1:8000/
.
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
๐ต Primary Keys ๐ Foreign keys ๐ข Dynamic API types for the frontend โช Basic fields.
AutoTheater is licensed under the MIT license.