GithubHelp home page GithubHelp logo

classicvalues / mdwebhook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dropbox/mdwebhook

1.0 1.0 0.0 32 KB

A sample app that uses webhooks to convert Markdown files to HTML.

Home Page: https://mdwebhook.herokuapp.com

License: Apache License 2.0

Python 58.83% CSS 21.10% HTML 20.08%

mdwebhook's Introduction

Markdown Webhook

This simple example app uses webhooks to get notified of new Markdown files in Dropbox. It then converts all Markdown files it sees to HTML.

Read more about webhooks and this example on the Dropbox developers site.

You can try the example yourself by visiting mdwebhook.herokuapp.com.

Running the sample yourself

This sample was built with Heroku in mind as a target, so the simplest way to run the sample is via foreman:

  1. Copy .env_sample to .env and fill in the values.
  2. Run pip install -r requirements.txt to install the necessary modules.
  3. Launch the app via foreman start or deploy to Heroku.

You can also just set the required environment variables (using .env_sample as a guide) and run the app directly with python app.py.

Deploy on Heroku

Deploy

You can deploy directly to Heroku with the button below. First you'll need to create an API app via the App Console. Make sure your app has access to files (not just datastores), and answer "Yes - My app only needs access to files it creates" to ensure your app gets created with "App folder" permissions.

Deploy

Once you've deployed, you can easily clone the app and make modifications:

$ heroku clone -a new-app-name
...
$ vim index.js
$ git add .
$ git commit -m "update index.js"
$ git push heroku master
...

mdwebhook's People

Contributors

smarx avatar greg-db avatar alekkras avatar

Stargazers

Classic Values 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.