Coder Social home page Coder Social logo

realtimeweb / blockpy-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opendsa/opendsa-lti

6.0 5.0 8.0 109.14 MB

BlockPy Server providing LTI integration

Home Page: http://think.cs.vt.edu/blockpy

License: MIT License

Python 1.08% JavaScript 91.89% CSS 0.46% HTML 6.56% POV-Ray SDL 0.02% Makefile 0.01%
blockpy

blockpy-server's Introduction

Blockpy Server

Flask-based server for managing the BlockPy LTI app.

This is the full-site for the Think project, which includes CORGIS and the CT@VT parts of the website. These instructions are pretty incomplete. If you just want to run BlockPy, check out https://github.com/acbart/Blockpy-Server! The instructions there are much better!

Incomplete Instructions

To run the server, you'll want to start by initizalizing the database:

python manage.py reset_db

And you can install some test data too.

python manage.py populate_db

Apparently this creates an admin user named "Austin Cory Bart", so that's gotta be fixed. Sigh. But, you can always visualize the database schema if you have graphviz installed.

python manage.py display_db

Anyway, you can start the server with a local secure connection with the following:

python manage.py secure

Now you can open your browser and navigate to "https://localhost:5000" and start interacting with the environment.

If you don't want to deal with SSL stuff, you can also start using it without setting up a secure local connection:

python manage.py runserver

Installing on a Server

You might also want to run this on a server. To do so, just create a new main WSGI file and import the application as you normally would. Need to expand this with an example.

Also need to give instructions for setting up SSL to handle LTI stuff. It's a whole deal.

blockpy-server's People

Contributors

acbart avatar cashaffer avatar dkafura avatar hosamshahin avatar lukesg08 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

blockpy-server's Issues

secrets.json is missing ...

with open('secrets.json') as secrets_file:
secrets = json.load(secrets_file)

May i know if have sample json? thanks

secrets.json not found

The command python3 manage.py reset_db returns the below error.

Traceback (most recent call last):
  File "manage.py", line 3, in <module>
    from main import app
  File "/Users/darren/Documents/gitlab/blockpy/blockpy/Blockpy-Server/main.py", line 11, in <module>
    with open('secrets.json') as secrets_file:
FileNotFoundError: [Errno 2] No such file or directory: 'secrets.json'

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.