GithubHelp home page GithubHelp logo

github-2-canvas's Introduction

GitHub 2 Canvas

Learning Goals

  • Build Canvas lessons from the command line
  • Improve the vibes with Python

Introduction

The current github-to-canvas Ruby gem has caused me enough grief that I have taken time out of my first build week to rewrite it in Python.

github-2-canvas is still very much under construction, but the functions and details will be added in as I complete them.

Important Information

GitHub 2 Canvas relies on two environment variables that must be set before it is run:

CANVAS_API_KEY is an API key that can be generated from account settings in Canvas. It should be stored in your .zshrc or .bashrc file with this exact name.

CANVAS_API_URL is the API endpoint that the script will access. This should be made known through your IT team. The CANVAS_API_URL at Flatiron should be 'https://learning.flatironschool.com' and it should be stored in yoru .zshrc or .bashrc file with this exact name.

hello

hello allows users to confirm that they can connect to the Canvas course that they're interested in modifying.

Format for command line input is as follows:

python github-2-canvas hello [course_id]

convert

convert allows users to convert their markdown code to HTML.

Format for command line input is as follows:

python github-2-canvas convert [md_filename]

convert returns the absolute path of the newly created HTML file.

create

Creates Page (only pages at this point) using the following syntax:

python github-2-canvas.py create [md_filename] [course_id]

Resources

github-2-canvas's People

Contributors

professor-ben avatar

Watchers

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