https://github.com/kgashok/elm-for-bitly
Using Elm to build a Bitly crawler to get rawgit links
https://github.com/kgashok/elm-for-bitly
api-client bitly elm-lang
Last synced: 8 months ago
JSON representation
Using Elm to build a Bitly crawler to get rawgit links
- Host: GitHub
- URL: https://github.com/kgashok/elm-for-bitly
- Owner: kgashok
- Created: 2018-10-27T16:39:53.000Z (over 7 years ago)
- Default Branch: glitch
- Last Pushed: 2023-03-03T00:24:31.000Z (over 3 years ago)
- Last Synced: 2025-10-09T02:03:02.888Z (9 months ago)
- Topics: api-client, bitly, elm-lang
- Language: Elm
- Size: 8.04 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 43
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GEB - Glitch, Elm for Bitly
## Why this?
### Primary reason
[Rawgit](https://rawgit.com/) - going out of service
and
[Query for rawgit](https://app.bitly.com/Bb84dvzET92/bitlinks/?query=rawgit)
gives me zero links, when I actually have at least **10+ links**, some of them already not working.
### Secondary reason
- to use glitch to develop Elm Apps
- to use Elm app to communicate what JavaScript equivalent app to be developed
- as per part of the Incremental Hackathon experience
- to also present a case study of how to manage App development in Github
### Misc
- Need to explore [https://elm.christmas/2018/16](https://elm.christmas/2018/16)
---
## Simple Elm Sample App
The Counter example from the [Elm documentation](https://guide.elm-lang.org/) in glitch just to see if it would work.
### Steps to Get Here
* add elm (v0.18.0) to the package.json
* open the console and check to make sure elm-repl works
* ran a `elm-make` manually to trigger elm dependency check
* added `source/main.elm` to project
* updated `package.json` to run `npm prestart` on start and modified `prestart` to run `elm-make source/main.elm --output=public/elm.js`
* modified `index.html` to reference `elm.js` and start the Main module in it with `var main = Elm.Main.fullscreen();`
* added watch.json to restart site when any `.eml` files are modified
* added `elm-stuff` folder to `.gitignore` so it doesn't pollute the file list (left `exact-dependencies.json` visible)
### Updated to elm v0.19.0
* updated the elm npm package to v0.19.0-bugfix2
* add elm-upgrade and elm-format
* run elm-upgrade
### Command line changes from elm v0.18.0 to v0.19.0
taken from the [release notes](https://github.com/elm/compiler/blob/master/upgrade-docs/0.19.md)
```
# 0.19 # 0.18
elm make # elm-make
elm repl # elm-repl
elm reactor # elm-reactor
elm install # elm-package install
elm publish # elm-package publish
elm bump # elm-package bump
elm diff # elm-package diff
```
\ ćoć)ć