Giter VIP home page Giter VIP logo

deusexmachinaonlinemoviesrentstore's Introduction

DeusExMachinaOnlineMoviesRentStore

ASSIGNMENT

Create a proof of concept app of an “Online Movies Store” from where users can perform all the base actions in order to search and rent/book and pay an online movie ”Title”. When the user purchase a “Title” he/she can play the movie as many times as he/she wants and the charge is based on a per day fee.

I created basic functionalitites of a movie rental store, according to my imagination. I had the liberty to add or modify the sue case provided to me.

BUILD AND RUN

Python 3.10.1 was used to build the project. Windows is my OS, so the commands provided are only valid for Windows.

  • Clone the project
  • Install dependencies using the following command: pip install -r requirements.txt
  • Activate the virtual environment: source venv/Scripts/activate
  • Change directory to ./src and execute flask db upgrade in order to create the database. Migrations folder is provided in the project and initial foo data are provided in ./src/init_db.sql. The sql queries must be executed in order for the database to have data in it.
  • In order to execute the app, if VS Code is your IDE of choice, you can execute the task provided in the .vscode/launch.json file. Otherwise, provided you are in the ./src folder, execute flask run in the terminal.

Documentation is provided inside every method and view of the project to explain the functionality.

I used Insomnia client to call the endpoints.

I have provided an export json file from the Insomnia client in order to have a reference of the endpoints. The responses that are inside the export json file are indicative and depend on the request provided by the user.

TESTING

The test script is located in ./src/test_api.py. I used VS Code to test the API by using the Testing extension.

deusexmachinaonlinemoviesrentstore's People

Contributors

dependabot[bot] avatar dimitrisathanasiadis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.