Skip to content

Commit ac65ae7

Browse files
Update README with build and run instructions
Added instructions for building and running the project.
1 parent b8f1aaf commit ac65ae7

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

  • astro-atproto-loader/__examples__/04-single-entry

astro-atproto-loader/__examples__/04-single-entry/README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,26 @@ turn the blob ref into `{ url, mimeType, size }` ready for `<img src>`.
2222

2323
## Run it
2424

25+
From this folder:
26+
2527
```bash
2628
npm install
2729
npm run dev
2830
```
2931

30-
Then open `http://127.0.0.1:4321` for the static page and
31-
`http://127.0.0.1:4321/live` for the live page.
32-
33-
If you want to inspect the built static output instead, run `npm run build`
34-
and then `npm run preview`.
32+
Then open `http://127.0.0.1:4321` for the static page and `http://127.0.0.1:4321/live`
33+
for the live page.
34+
35+
> [!WARNING]
36+
>
37+
> If you haven't done so already, you'll first need to build `astro-atproto-loader` itself.
38+
> If you don't remember if you have, don't worry: there's no harm in doing so again.
39+
>
40+
> From the `astro-atproto-loader` folder—**not this one!**—run:
41+
>
42+
> 1. `npm install`
43+
> 2. `npm run build`
44+
>
45+
> If all goes well, you will see a bunch of logs and eventually an
46+
> `[astro-atproto-loader] Build complete` message. You can then come back
47+
> to this folder and follow the "run it" section.

0 commit comments

Comments
 (0)