Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: readme and typedoc #46

Closed
wants to merge 17 commits into from
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,12 @@ jobs:
cd ../../examples/canvas
yarn install --frozen-lockfile
yarn build

build-docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- shell: bash
run: |
docker compose build

62 changes: 62 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,64 @@
# ts-topology
The official TypeScript implementation of Topology Protocol

## Introducion

## Development

To build and run this project you'll need to have [yarn](https://classic.yarnpkg.com/lang/en/docs/install/#debian-stable) installed.
If you don't have yarn installed, go ahead and install the latest version.

### Build Project
Install the dependecies of every package of the project.

```sh

# build crdt
> cd packages/crdt
> yarn install
> yarn build

# build network
> cd packages/network
> yarn install
> yarn build

# build node
> cd packages/node
> yarn install
> yarn build

# build object
> cd packages/objects
> yarn install
> yarn build

# build examples-canvas
> cd packages/examples/canvas
> yarn install
> yarn build

```

### Run Project
To run the exemple-canvas execute:

```sh

>cd examples/canvas
# this will execute "webpack serve"
> yarn dev

```

This command will create a development server for the project at http://localhost:3000/.



## Example
For a better undestandability of this project we explain using an example.





3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"vitest": "^1.6.0"
},
"workspaces": [
"packages/*"
"packages/*",
"examples/*"
],
"private": true,
"release-it": {
Expand Down