Skip to content

Lazare-C/phpavance

Repository files navigation

PHP VERSION

Movie list

Symfony 5.4 project gathering a list of movies with local notes but also IMDB notes and desciption.

Indications

To add a film you have to go through the route: /movie/addor for a bulk import /movie/add/bulk.

If you add a movie that already exists it will just calculate the new average score and save it in the database.

Knowing that normally the batch import is reserved for admins and that movies already contains a descriptions, the app will not check with the API to not overload it

Also, only the last uploaded poster is kept.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

DATABASE_URL = sqlite:///%kernel.project_dir%/var/data.db

OMBDBAPIKEY = 1234

ADMIN_CODE = 1234

Tech Stack

Client: TailwindCSS

Server: Symfony, SQLite, Twig, Webpack and Encor

API: OMDB

Deployment

To deploy this project run

  composer install
  php bin/console doctrine:migrations:migrate
  npm install
  npm run build

Launch dev server

  symfony server:start

Author

Acknowledgements

🔗 Socials

GitHub followers

Twitter Follow

Instagram Follow

About

Symfony project pour le cours de PHP Avancé. 2022

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published