Code Monkey home page Code Monkey logo

trivia-catalog's Introduction

Trivia Database

Trivia database is used to manage trivia categories, questions and answers. Users can login with their Facebook or Google accounts. The project create using Flask Python, SQLAlchemy with SQLite database, Facebook and Google OAuth.

Features

  • Login/logout with Facebook or Google
  • Update profile picture
  • Create a category
  • Create/update/delete a question and possible answers
  • Create/update/delete can be performed only by logged in users.
  • Update and delete can be done only by the same user who created the record.
  • Filter questions by a category
  • Get all the categories and questions belonging to them in JSON format /alldata/JSON
  • CSRF on forms

##Prerequisites

  • Python (tested with version 2.7.6)
  • Virtual Box and Vagrant
  • Sqlalchemy version 1.0 or higher (tested with 1.0.14)
  • flask-seasurf (for CSRF protection)

##Steps To run the project on a virtual machine:

  • download Vagrant configuration from https://github.com/udacity/fullstack-nanodegree-vm
  • download project files to /vagrant/catalog directory
  • Upgrade SQLAlchemy if needed:
  • $sudo pip install SQLAlchemy --upgrade
  • Import Flask SeaSurf library
  • $sudo pip install flask-seasurf
  • to create the database in vagrant/catalog directory run $python database_setup_trivia.py
  • in vagrant.catalog directory create 2 files client_secrets.json with Goggle secret and fb_client_secrets.json with Facebook app secret.
  • to start the project in vagrant/catalog directory run $python project.py
  • access the project on localhost:5000

trivia-catalog's People

Contributors

daliavi avatar

Stargazers

Rajendra Agrawal avatar hieuanh avatar Venkatesh avatar

Watchers

 avatar

Forkers

anthonyhuynh1

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.