forked from
jollywhoppers.com/witchsky.app
Bluesky app fork with some witchin' additions 馃挮
1## Build / Develop
2
3### SPA Bundle (monolithic static javascript file)
4
5To build the SPA bundle (`bundle.web.js`), first get a JavaScript development
6environment set up. Either follow the top-level README, or something quick
7like:
8
9```bash
10# install nodejs
11nvm install
12nvm use
13npm install --global yarn
14
15# setup tools and deps (in top level of this repo)
16yarn install --frozen-lockfile
17
18# run yarn web dev server, if you wanted
19yarn web
20```
21
22Then build and copy over the big 'ol `bundle.web.js` file:
23
24
25```bash
26# in the top level of this repo
27yarn build-web
28```
29
30### Golang Daemon
31
32Install golang. We generally develop against the current stable release of the language, as declared in `go.mod`.
33
34In this directory (`bskyweb/`):
35
36```bash
37# re-build and run daemon
38go run ./cmd/bskyweb serve
39
40# build and output a binary
41go build -o bskyweb ./cmd/bskyweb/
42```
43
44The easiest way to configure the daemon is to copy `example.env` to `.env` and
45fill in auth values there.