Code Monkey home page Code Monkey logo

fsnd-capstone's Introduction

Casting Agency App using Python Flask and React

This app is developed as part of capstone project for Udacity's FullStack Developer Nanodegree. It allows managing movies, actors and their association based on RBAC permissions assiged to logged in user.

System Requirement

  • Node JS
  • Python 3
  • Postgres SQL
  • Auth0.com authentication

Authentication Platform

Currently the [Auth0.com] is supported for authentication and RBAC authorization. Create auth0 account and setup Single-Page app with configuration to allow authentication from your deployed URL. Also, setup desired Users and Roles with following permissions:

Permissions

Permission Description
read:actors Allows reading actor(s) records
create:actors Allow creating actor's record
update:actors Allow editing actor's record
delete:actors Allow deleting actor's record
read:movies Allow reading movie records
create:movies Allow creating actor's record
update:movies Allow updating actor's record
delete:movies Allow deleting actor's record

Setup Environment Variables

Required Enviroment variables is specified in .evn.template file

DATABASE_NAME=
DATABASE_URL=postgres://postgres@localhost:5432/casting_agency?gssencmode=disable
APP_SECRET_KEY=some-secret-key
AUTH0_API_AUDIENCE=
AUTH0_CLIENT_ID=
AUTH0_CLIENT_SECRET=
AUTH0_DOMAIN=
AUTH0_CALLBACK_URL=http://localhost:5000/api/auth/callback

Creating database

First create database in Postgres SQL

createdb casting_agency -U <username>
python manage.py db upgrade

To Setup and Start Backend

pip install -r requirements.txt
python app.py

Start Frontend separately

npm install
npm run start

Swagger UI for API Documentation

Hosted Locally http://127.0.0.1:5000/swagger/

Hosted via Heroku https://ashishp-casting-agency.herokuapp.com/swagger

Heroku

Deploy

Live App: https://ashishp-casting-agency.herokuapp.com

fsnd-capstone's People

Contributors

ashishp-vmw avatar

Watchers

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