Skip to content

mal-coder/movie-api-noframework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Movie API - frameworkless

Simple REST API allowing requesting information about movies (but not necessarily limited to that).

Works the same as Movie API but does not use any external libraries nor frameworks.

This version was added for demonstrative purposes - to show that it is not necessary to use any external addons while programming in Python. It does not cover many aspects which a production ready server should contain.

Prerequisites

(if you do not wish to install anything use the attached docker-compose file.):

  • Python 3.9
  • Pipenv

optionally:

  • Docker

Installing Movie API - frameworkless

To install File system API, follow these steps:

  • Clone the repository and create a virtual environment with pipenv to install all the needed libraries
$ pipenv install

Create the following environmental variables or edit them in docker-compose.yml:

XML_API_URI=https://www.omdbapi.com/?r=xml&apikey=<your api key> - tagert server address !! remeber to update your API key
API_KEY=<applications key>

Using Movie API - frameworkless

To use Movie API simply start it with:

python main.py

Or use the provided docker-compose.yml:

docker-compose build
docker-compose up

For local deployment the default URL address is: http://0.0.0.0:5000/?title={movie title}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published