The Casting Agency models a company that is responsible for creating movies and managing and assigning actors to those movies. You are an Executive Producer within the company and are creating a system to simplify and streamline your process.
with attributes title, director and release date
attributes name, age and gender
attributes name, age and gender
GET /actors , /movies and /directors
DELETE /actors/ , /movies/ and /directors
POST /actors , /movies and /directors
PATCH /actors/ , /movies/ and /directors
admin Can create , delete and edit actors and movies and directors editor Can only edit actors and movies and directors
Follow instructions to install the latest version of python for your platform in the python docs
We recommend working within a virtual environment whenever using Python for projects. This keeps your dependencies for each project separate and organaized. Instructions for setting up a virual enviornment for your platform can be found in the python docs
Once you have your virtual environment setup and running, install dependencies by naviging to the /backend
directory and running:
pip install -r requirements.txt
This will install all of the required packages we selected within the requirements.txt
file.
-
Flask is a lightweight backend microservices framework. Flask is required to handle requests and responses.
-
SQLAlchemy and Flask-SQLAlchemy are libraries to handle the lightweight sqlite database. Since we want you to focus on auth, we handle the heavy lift for you in
./src/database/models.py
. We recommend skimming this code first so you know how to interface with the Drink model. -
jose JavaScript Object Signing and Encryption for JWTs. Useful for encoding, decoding, and verifying JWTS.
there is a postman json file that contain all the API
https://capstone-project-ipklaid.herokuapp.com
admin rule can do post, delete and patch edtor rule can only patch