Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arnaudsm/potato-tv
TVshow Time Clone
https://github.com/arnaudsm/potato-tv
Last synced: 3 days ago
JSON representation
TVshow Time Clone
- Host: GitHub
- URL: https://github.com/arnaudsm/potato-tv
- Owner: arnaudsm
- Created: 2019-09-10T13:04:03.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T00:29:48.000Z (almost 3 years ago)
- Last Synced: 2023-03-22T10:33:38.456Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 6.31 MB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Potato TV
![Logo](graphics/banner.png)
## Contributors
- [Arnaud de Saint Méloir](http://github.com/arnaudsm/)
- [Coumba Ndiaye](https://github.com/slevine95)
- Marianne Strassburger## Features
### Latest Shows
![Latest Shows](graphics/screenshots/latest.png)
Visualize the latest shows and the homepage.### Episode List
![Episode List](graphics/screenshots/episodes.png)
Visualize the Episode List os a specific show.
Click on a season or episode "Seen" button to add it to your library.### Profile Page
![Profile Page](graphics/screenshots/profile.png)
Visualize your Profile Page to see your collection and total time spent watching shows.### Create Account
![Create Account](graphics/screenshots/create.png)### Login
![Login](graphics/screenshots/login.png)## Todo
### Databases
- [x] `users` with `varchar user_name, varchar password_hash, int autoincrement user_id`
- [x] `seen_episodes` with `long_Int show_id, int season_id, int episode_id, int duration_min, int user_id`
### Functions
- [x] `Create_User(varchar user_name, varchar password)=Boolean success`
- [x] `Login_User(varchar user_name, varchar password)=Boolean success`
- [x] `Add_Episode(long_Int show_id, int season_id, int episode_id, int duration_min, int user_id)=Boolean success`
- [x] `Time_Spent(int user_id)=int total_duration`
### Interface
- [x] Latest Shows
- [x] Show page
- [x] Profile : Seen Shows and total time## Notes pour les enseignants
Comme convenu, l'authentification n'est pas implémentée. Nous avons néanmoins disposé les pages et fonctions nécéssaires pour l'implémenter dans le futur.Nous utilisons l'API de the TVdB à travers un proxy CORS auto-hébergé pour passer le firewall EPF. Si l'API ne fonctionne plus, effacez vos cookies et LocalStorage de la page.
## Launch
1. Cloner le projet en utilisant la commande `git clone https://github.com/arnaudsm/potato-tv`2. Importer le projet dans IntelliJ IDEA en important le fichier "pom.xml" à la racine de ce repository.
3. Exécuter votre DB mysql. Si vous avez docker, vous pouvez utiliser la commande suivante:
```
docker run --name mariadb --rm -e MYSQL_ROOT_PASSWORD=toor -e MYSQL_DATABASE=defaultdb -p 3306:3306 -v "`pwd`/initdb:/docker-entrypoint-initdb.d" mariadb
```4. Tous les scripts sql contenus dans le dossier initdb seront exécutés automatiquement lors du premier chargement de la DB.