Giter Club home page Giter Club logo

triviaapi's Introduction

TriviaAPI

A web application for playing the Trivia quiz game.

Trivia Home Page

Table of Contents

  1. About the Project
  2. Installations
  3. File Descriptions
  4. How to Interact with the Project

About the Project:

Trivia is a simple general knowledge game that anyone can play. This game can allow anyone to add any questions with the corresponding answers. It can retrieve these questions based on different categories.

By clicking on play game, the application will return a set of random questions from a particular category. The user will be able to answer the question and will receive a point for every corect answer. The points will be tallied up and a final score will be displayed.

Trivia Play

Installations:

The following libraries are required for the project:

  • Click
  • Flask
  • Flask-Cors
  • Flask-RESTful
  • Flask-SQLAlchemy
  • itsdangerous
  • Jinja2
  • MarkupSafe
  • psycopg2-binary
  • python-dotenv
  • SQLAlchemy

File Descriptions

How to Interact with the Project

In order for the application to run successfully, there are a number of steps that need to be followed. Run the following commands in a Linux terminal:

Step 1

To start Postgres and set up the database:

bash setup-trivia.sh

Step 2

Move into the backend directory and run the pip install for the requirements.txt file:

cd backend
pip3 install -r requirements.txt

Step 3

Start the backend server:

export FLASK_APP=flaskr
export FLASK_ENV=development
flask run

Step 4

Navigate into the frontend directory and install libraries:

cd frontend
npm install

Step 5

Start the frontend server:

npm start

triviaapi's People

Contributors

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