Code Monkey home page Code Monkey logo

husamcast's Introduction

App

is

not

live

furthermore

How to use the app?

App resides on the link:
https://husamcast.herokuapp.com/
Frontend completly operates, please login with below credentials to use it:
Thanks to jinja and Auth0 Python implentation you can only see relevant permissions according to your roles on the menu.

Env tech stacks

Latest versions of Python and PostgreSQL
And for dependincies please pip the requirements.txt
pip install -r requirements.txt

Login Credentials

    Casting Assistant
            - name:[email protected]
            - pass:Aa123456
    Casting Director
            - name:[email protected]
            - pass:Aa123456
    Execcutive Producer
            - name:[email protected]
            - pass:Aa123456

Authentication and Authorization

While Frontend showcases the use of authentication with id_tokens,
apiandtesting provides unittest with RBAC background. showcases authorization with access_tokens,

How to test

while testing the api locally user only needs to download that folder apiandtesting.
or should cd to that folder (if all repo downloaded). apiandtesting folder also have its Readme, please refer to it.
Reviewers may notice that app endpoints and api endpoints operate identical functions (so tests are healthy), but while one renders template (for frontend), other jsonifys (for testing).

Roles And permissions

    Casting Assistant
            - Can view actors and movies
    Casting Director
            - All permissions a Casting Assistant has and…
            - Add or delete an actor from the database
            - Modify actors or movies
    Executive Producer
            - All permissions a Casting Director has and…
            - Add or delete a movie from the database

Application Endpoints

Some endpoints haven't covered here for security. (login, callback etc.)

route requires returns
casting none renders a template of RBAC menu
actors none renders a template of all artists query
actors/delete/ integer executes db.delete returns to actors route
actors/edit/ integer and form data executes db.update returns to actors route
movies/edit/ integer and form data executes db.update returns to movies route
movies/delete/ integer executes db.delete returns to movies route
movies none renders a template of all movies query
actors/create form data executes db.add returns to actors route
movies/create form data executes db.delete returns to movies route

husamcast's People

Contributors

husamsurmeli 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.