forked from exit-zero-academy/NetflixMovieCatalog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# NetflixMovieCatalog | ||
|
||
NetflixMovieCatalog is a simple Flask-based API that provides information about TV shows and movies. | ||
|
||
## Endpoints | ||
|
||
- `GET /` - Welcome message | ||
- `GET /discover` - Discover movies or TV shows | ||
- `POST /updatePopularity` - Update the popularity of a specific movie | ||
- `GET /status` - Check the API status | ||
|
||
## Setup | ||
|
||
1. Clone the repository: | ||
```sh | ||
git clone https://github.com/yourusername/NetflixMovieCatalog.git | ||
cd NetflixMovieCatalog | ||
``` | ||
|
||
2. Create a Python virtual environment and activate it: | ||
```sh | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
``` | ||
|
||
3. Install the required dependencies: | ||
```sh | ||
pip install -r requirements.txt | ||
``` | ||
|
||
4. Run the application: | ||
```sh | ||
python app.py | ||
``` | ||
|
||
## Data Files | ||
|
||
- `data/data_tv.json` - Data for TV shows | ||
- `data/data_movies.json` - Data for movies | ||
|