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.
Latest versions of Python and PostgreSQL
And for dependincies please pip the requirements.txt
pip install -r requirements.txt
Casting Assistant
- name:[email protected]
- pass:Aa123456
Casting Director
- name:[email protected]
- pass:Aa123456
Execcutive Producer
- name:[email protected]
- pass:Aa123456
While Frontend showcases the use of authentication with id_tokens,
apiandtesting
provides unittest with RBAC background. showcases authorization with access_tokens,
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).
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
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 |