Giter Club home page Giter Club logo

sensei's Introduction

Sensei: Sensing Educational Interaction

Build Status

Web Application

If you're new to Flask and SQLAlchemy: Flask: http://flask.pocoo.org/ SQLAlchemy: http://flask-sqlalchemy.pocoo.org/2.1/

Getting started:

  1. clone the repo and cd to it

  2. run virtualenv venv && source venv/bin/activate (You will need to source the activate script for other new shells as well)

  3. pip install -r requirements.txt

  4. npm install -g create-react-app

  5. cd frontend && npm install && cd ..

  6. npm install && npm install -g gulp-cli

  7. npm run postinstall

  8. python run.py

  9. Go to http://localhost:5000/

Integrate with Transparent Classroom

  1. Go to the Wildflower Network, then Admin -> School Settings.

  2. In the Custom Header box, put the following:

<script>window.sensei = {env: {baseUrl: 'http://localhost:5000'}}</script>
<script src="http://localhost:3002/static/bundle.js"></script>
<link rel="stylesheet" type="text/css" href="http://localhost:3002/static/bundle.css">

Running the classroom simulator

env $(cat .sim.env | xargs) ./classroom_sim.py

Running migrations

  1. export FLASK_APP=run.py

  2. flask db upgrade

Running tests

pytest

Or to just run tests that match a string:

pytest -k somestring

Deploying to heroku

We use two buildpacks; one for python, one for nodejs

heroku buildpacks:add --index 1 heroku/python
heroku buildpacks:add --index 2 heroku/nodejs

sensei's People

Contributors

aybose avatar marknutter avatar optimuspaul avatar ps2 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.