Coder Social home page Coder Social logo

markdowntables's Introduction

Build Status

Create, Edit and Format your markdown tables.

Similar to these projects:

... but much better.

Running app locally

git clone [email protected]:samhstn/markdowntables.git && cd markdowntables
npm install
npm start

Running app in production

We have configured travis to automatically deploy to gh-pages branch.

To set this up, we simply need to generate a new token with a repo scope in our github developer settings.

Then add this token as an environment variable called GITHUB_TOKEN in our travis settings.

Every change to our master branch will trigger a new deploy to our gh-pages url.

A useful script to wait for gh-pages to be deployed is:

until [ "$(curl -s https://samhstn.github.io/markdowntables/version)" = "$(git rev-parse HEAD)" ];do
  printf "."
  sleep 5
done

AWS Setup

Checkout the infra documentation for guidance.

markdowntables's People

Contributors

samhstn avatar

Stargazers

Roman avatar Nelson avatar

Watchers

James Cloos avatar  avatar

markdowntables's Issues

Validate if table input is valid

We should check that the input has the correct number of rows in each column.

If invalid, we should show a cross with an invalid message and not update the state of the table.

We should also check how strict a markdown parser is on valid tables.

Npm depdency doesn't exist

Our ci is failing on the error:

npm ERR! code ETARGET
npm ERR! notarget No matching version found for ecstatic@^3.0.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'http-server'
npm ERR! notarget

Looks like the issue is going to be resolved any minute as soon as this pr is merged: jfhbrook/node-ecstatic#256

Ci

Add ci which:

  • runs our tests
  • pushes to branch gh-pages if successful

Rethink what is generated from UserInput

We currently generate, from a UserInput (String for now), a Result UserInputErr TableRows.

Resulting in either the table rows, or some sort of error. This is quite limited and will only show the user one thing. We also stop on the first error/warning we find.

It would be nicer instead to always show a table result when possible. Along with all validation warnings and errors if the UserInput is or isn't parsable.

We should instead look to work with the following types:

type Generated
    = Generated (List Warning) (Result (List Error) TableRows)


type Warning
    = TrailingSpace Coordinate
    | ...


type Error
    = InvalidHeader Coordinate
    | ...


type alias Coordinate =
    { line : Int
    , characters : List Int
    }

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.