kanelm

Kanban board built with Elm

  • 所有者: huytd/kanelm
  • 平台:
  • 许可证: BSD 2-Clause "Simplified" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Kanelm - Kanban Board in Elm

Run it locally

Assume you already have Node and Elm installed, you can use either NPM or Yarn.

  1. Clone this project
  2. Install dependencies:
yarn
elm-package install

:bulb: Note: Use yarn since the yarn.lock dependency file is up to date.

  1. Create config file from example config:
cp src/example.config.js src/config.js

Create an account on https://jsonbin.io/ to obtain the Secret key, create a new JSON file on this site. Put the URL into your config.js. You can find your bin's URL here:

Be sure to append a https: suffix to the API URL in the config.js, otherwise the built version in kanban-app won't work.

Your config should look something like this:

module.exports = {
    SECRET: 'you-api-secret-here',
    URL: 'https://api.jsonbin.io/b/{id-of-jsonbin-bin}'
};

The initial data for your JSON file should be:

{"taskInput": "", "tasks": [], "movingTask": null}
  1. Start the dev server:
yarn start

Deploy it on your server

To deploy it on your server, just run npm build and copy the two files in dist folder. It run as a static HTML page, so you can even put it on Github Pages.

Themes

To use dark theme, add dark class into `container**:

src/Main.elm

view : Model -> Html Msg
view model =
  ...
      div [ class "container dark" ] [
  ...

Light theme

Dark theme

主要指标

概览
名称与所有者huytd/kanelm
主编程语言Elm
编程语言Elm (语言数: 4)
平台
许可证BSD 2-Clause "Simplified" License
所有者活动
创建于2017-12-12 01:38:39
推送于2019-04-24 16:28:41
最后一次提交2019-04-24 18:28:40
发布数0
用户参与
星数303
关注者数14
派生数29
提交数21
已启用问题?
问题数7
打开的问题数2
拉请求数6
打开的拉请求数0
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?