2020-04-23 07:01:24 +00:00
|
|
|
# dda-masto-embed
|
|
|
|
Embeds mastodon timline into a html page. Uses JS, no intermediate server required.
|
2020-04-23 12:22:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Setup
|
|
|
|
|
2020-04-24 15:26:42 +00:00
|
|
|
```
|
2020-04-27 10:21:46 +00:00
|
|
|
npm install -g npx
|
|
|
|
npm install -g shadow-cljs
|
|
|
|
npm install -g source-map-support --save-dev
|
2020-04-24 12:53:06 +00:00
|
|
|
npm install mastodon-api
|
2020-04-27 10:21:46 +00:00
|
|
|
|
2020-04-24 15:26:42 +00:00
|
|
|
```
|
2020-04-23 12:22:20 +00:00
|
|
|
|
|
|
|
# Development
|
|
|
|
|
2020-04-24 15:26:42 +00:00
|
|
|
```
|
2020-04-24 12:42:30 +00:00
|
|
|
shadow-cljs watch frontend
|
2020-06-19 13:02:24 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
open browser at http://localhost:8080
|
|
|
|
|
|
|
|
Connect your repl for :frontend
|
|
|
|
|
|
|
|
|
|
|
|
# run the tests
|
|
|
|
|
|
|
|
```
|
2020-04-24 15:26:42 +00:00
|
|
|
shadow-cljs compile test
|
|
|
|
```
|