GithubHelp home page GithubHelp logo

cnsuhao / markdownjournal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maciakl/markdownjournal

0.0 1.0 0.0 650 KB

Plain text journaling with Markdown and Dropbox on the Sinatra platform.

Home Page: http://markdownjournal.com

Ruby 26.00% JavaScript 1.48% HTML 72.52%

markdownjournal's Introduction

Markdown Journal

An online journal which saves short, tweet like entries into Markdown documents inside of your Dropbox. You can see it in action at markdownjournal.com.

Requirements

System Requirements

Runtime Gem Dependencies

Gem dependencies are now managed by Bundler. To download and install all the required gems automatically run the following in the project folder:

bundle install

In case you are interested, here is the list of gems that are being installed:

Development Time Requirements

These are optional, but make your life easier. I have not included the Twitter Boostrap or jQuery files with this project. Instead the public directory contains a component.json file with list of dependencies. This file is used by bower to fetch the required files. To use it you will need:

User Requirements

  • Dropbox account to store the journal

Config

You will need a Dropbox API key. You can register one here. Once you have App key and App secret values you will need to create a configuration file for your application.

Create a file config.yml in the root directory of the project. Inside you should have:

key: your-dropbox-app-key-string
secret: your-dropbox-app-secret-string
url: http://localhost:4567/write

Go to the public directory and run:

bower install

This will fetch Twitter Bootstrap and jQuery into the public/components directory. Now you should be all set.

Make sure you have sinatra, dropbox_api and other gems installed:

gem install bundler
bundle install

You can run the application locally like this:

ruby app.rb

On older versions of ruby you may need to use:

ruby -rubygems app.rb

This will run a server at http://localhost:4567.

Known Issues

If you run into parsing errors when reading user YAML files, uncomment the following line in the code:

YAML::ENGINE.yamler= 'syck'

In the newer versions of Ruby the default YAML parser sometimes throws a fit when reading files that have weird line endings or other artifacts. The Syck parser seems to work fine most of the time.

Licensing

Markdown Journal is licensed under GPLv3.

markdownjournal's People

Contributors

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