Skip to content

Commit 3462b2c

Browse files
committed
Update docs for local browser #216
1 parent 5f42870 commit 3462b2c

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ By far most changes relate to `atomic-server`, so if not specified, assume the c
55
Changes to JS assets are not included here, but in [`atomic-data-browser`'s CHANGELOG](https://github.com/atomicdata-dev/atomic-data-browser/blob/main/CHANGELOG.md).
66
See [STATUS.md](server/STATUS.md) to learn more about which features will remain stable.
77

8+
## UNRELEASED
9+
10+
- Monorepo! Include `atomic-data-browser` in this repo. #216
11+
812
## [v0.34.3] - 2023-06-27
913

1014
- Remove `tpf` queries from `atomic-cli` #610

CONTRIBUTE.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Check out the [Roadmap](https://docs.atomicdata.dev/roadmap.html) if you want to
1414

1515
- [Table of contents](#table-of-contents)
1616
- [Running locally](#running-locally)
17+
- [Running locally (with local development browser)](#running-locally-with-local-development-browser)
1718
- [Improve local compilation speed](#improve-local-compilation-speed)
1819
- [Cross compilation](#cross-compilation)
1920
- [IDE setup (VSCode)](#ide-setup-vscode)
@@ -39,10 +40,11 @@ Check out the [Roadmap](https://docs.atomicdata.dev/roadmap.html) if you want to
3940

4041
Clone the repo and run `cargo run` from each folder (e.g. `cli` or `server`).
4142

42-
Since `atomic-server` is developed in conjunction with the typescript / react `atomic-data-browser` project, it might make sense to run both locally whilst developing.
4343

44-
- Clone [`atomic-data-browser`](https://github.com/atomicdata-dev/atomic-data-browser) and run it (see readme.md, basically: `pnpm start`)
45-
- Visit `https://localhost:8080` (default)
44+
## Running locally (with local development browser)
45+
46+
- Run `cargo run` to start the server
47+
- Go to `browser` and run `pnpm dev` to start the browsre
4648
- Visit your `localhost` in your locally running `atomic-data-browser` instance: (e.g. `http://localhost:8080/app/show?subject=http%3A%2F%2Flocalhost`)
4749
- use `cargo watch -- cargo run` to automatically recompile `atomic-server` when you push new assets using `pmpm build-server` in `atomic-data-browser`. This can be useful if you're debugging specific features that you can't reproduce while the front-end is hosted in vite.
4850

@@ -178,14 +180,14 @@ So please first send an e-mail to joep@ontola.io describing the issue, and then
178180

179181
The following should be triggered automatically:
180182

181-
- Push the `v*` tag, a Release will automatically be created on Github with the binaries. This will read `CHANGELOG.md`, so make sure to add the changes from there.
182-
- The main action required on this repo, is to _update the changelog_ and _tag releases_. The tags trigger the build and publish processes in the CI.
183+
- Push the `v*` tag, a Release will automatically be created on Github with the binaries. This will read `CHANGELOG.md`, so make sure to add the changes from there.
184+
- The main action required on this repo, is to _update the changelog_ and _tag releases_. The tags trigger the build and publish processes in the CI.
183185

184186
Note:
185187

186-
- We use [semver](https://semver.org/), and are still quite far from 1.0.0.
187-
- The version for `atomic-lib` is the most important, and dictates the versions of `cli` and `server`. When `lib` changes minor version, `cli` and `server` should follow.
188-
- After publishing, update the `./desktop/latest-version.json` file. This is used for auto-updating desktop distributions. See [tauri docs](https://tauri.studio/docs/distribution/updater).
188+
- We use [semver](https://semver.org/), and are still quite far from 1.0.0.
189+
- The version for `atomic-lib` is the most important, and dictates the versions of `cli` and `server`. When `lib` changes minor version, `cli` and `server` should follow.
190+
- After publishing, update the `./desktop/latest-version.json` file. This is used for auto-updating desktop distributions. See [tauri docs](https://tauri.studio/docs/distribution/updater).
189191

190192
### Publishing manually - doing the CI's work
191193

@@ -228,7 +230,7 @@ or do it manually:
228230
1. `cargo build --release --target x86_64-unknown-linux-musl --bin atomic-server` (if it fails, use cross, see above)
229231
1. `scp ../target/x86_64-unknown-linux-gnu/release/atomic-server atomic:~/atomic/server/atomic-server-v0.{version}`
230232
1. `ssh atomic` (@joepio manages server)
231-
2. `service atomic restart`
233+
1. `service atomic restart`
232234

233235
```sh
234236
# logs

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ Get the binaries from the [releases page](https://github.com/atomicdata-dev/atom
129129
### 4. Install using cargo
130130

131131
```sh
132+
# Make sure pnpm is installed and available in path! https://pnpm.io/
133+
pnpm --version
132134
# Install from source using cargo, and add it to your path
133135
# If things go wrong, check out `Troubleshooting compiling from source:` below
134136
cargo install atomic-server --locked
@@ -141,6 +143,8 @@ atomic-server
141143
### 5. Compile from source
142144

143145
```sh
146+
# make sure pnpm is installed and available in path! https://pnpm.io/
147+
pnpm --version
144148
git clone git@github.com:atomicdata-dev/atomic-server.git
145149
cd atomic-server/server
146150
cargo run

browser/data-browser/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Atomic Data Browser
22

3-
[![Build Status](https://github.com/atomicdata-dev/atomic-data-browser/workflows/build/badge.svg)](https://github.com/atomicdata-dev/atomic-data-browser/actions)
4-
53
_Status: Beta. [Breaking changes](CHANGELOG.md) are expected until 1.0._
64

75
View, edit and create [Atomic Data](https://atomicdata.dev/) from your browser!

0 commit comments

Comments
 (0)