Giter Site home page Giter Site logo

qelxiros / devcade-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from computersciencehouse/devcade-website

0.0 0.0 0.0 7.86 MB

Front-end for the Devcade website that allows members to view the game catalog and upload games.

Home Page: https://devcade.csh.rit.edu

License: MIT License

JavaScript 30.41% Python 21.52% CSS 15.23% HTML 32.26% Dockerfile 0.59%

devcade-website's Introduction

devcade-website

Front-end for the Devcade website that allows members to view the game catalog and upload games.

How to Run

pip3 install -r requirements.txt

cd src

flask run

Project Structure

This project follows a standard template for a Flask project. Below is the basic file structure of the project, with every file described other than those in the static/ folder (for brevity).

devcade-website
| src/
| | static/         // Static content (images, css, js)
| | templates/      // Header and content templates
| | | header.html   // Includes game block macro and header block macro
| | | game.html     // Game focus page
| | | catalog.html  // Game catalog page
| | | credits.html  // Game credits page (using game blocks)
| | | error.html    // Error page
| | | home.html     // Main page, includes project details
| | | upload.html   // Game upload page, including instructions
| | | profile.html  // User profile -- not implemented
| app.py            // Main file
| auth.py           // Helper functions for handling CSH auth
| config.py         // Environment variable getters
| init.py           // Initialization for flask project
| models.py         // User model
| envs.py           // Environment variable setters (Follows template described in Local Development section)

Local Development

If you would like to run this project using your local machine, first create a envs.py file with the following structure:

import os

os.environ['IP'] = ''
os.environ['PORT'] = ''
os.environ['SERVER_NAME'] = ''
os.environ['PREFERRED_URL_SCHEME'] = ''
os.environ["OIDC_ISSUER"] = ""
os.environ["OIDC_CLIENT_ID"] = ""
os.environ["OIDC_CLIENT_SECRET"] = ""
os.environ["GOOGLE_OIDC_ISSUER"] = ""
os.environ["GOOGLE_OIDC_CLIENT_ID"] = ""
os.environ["GOOGLE_OIDC_CLIENT_SECRET"] = ""
os.environ["DEVCADE_API_URI"] = ""
os.environ["FRONTEND_API_KEY"] = ""
os.environ["DEVCADE_IS_DEV"] = ""

Note that this is just a template for the envs.py file. You will need to get these secrets from an RTP or Devcade developer.

devcade-website's People

Contributors

asimonson1125 avatar wilsonmcdade avatar jabbate19 avatar willnilges avatar esoccoli avatar dependabot[bot] avatar mstrodl avatar mtft-games avatar mobmaker55 avatar isaacingram 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.