Skip to content

Commit

Permalink
Merge branch 'main' into implemented-ci-cd
Browse files Browse the repository at this point in the history
  • Loading branch information
aqeell7 authored Oct 17, 2024
2 parents 26e1347 + 900b842 commit 0953860
Show file tree
Hide file tree
Showing 19 changed files with 234 additions and 221 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ example-local
coverage/
ngrok.yml
src/test.ts
.env.*
.env.*
.cache
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
</div>
</div>


![Test status](https://github.com/ReclaimProtocol/attestor-core/actions/workflows/ci-cd.yml/badge.svg?job=test)
![Deploy status](https://github.com/ReclaimProtocol/attestor-core/actions/workflows/ci-cd.yml/badge.svg?job=deploy)

Expand Down
21 changes: 1 addition & 20 deletions docs/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,4 @@
- `window-rpc`: Contains code to setup a listener on the browser for a mobile app to interact with the SDK. More on this in the [docs](docs/browser-rpc.md). Entirely client-side code.
- `...`: Other common code & utils used by both the client & server.
- `avs`: Smart contracts & respective code, utils for the Eigen AVS.
- `proto`: Protobuf spec for client-server communication.


## Running a Attestor Locally

1. Of course, clone this repository.
2. Ensure you have an env file with at least the `PRIVATE_KEY` set. See the [.env.sample](.env.sample) file to see all available options.
3. Optional: build the browser RPC files with `npm run build:browser`. More on this in the [docs](docs/browser-rpc.md).
4. Run the attestor server with `npm run start:tsc`. This will start the server on port 8001 by default.

## Deploying to the Cloud

You can deploy your own Reclaim server via the [docker-compose](/docker-compose.yaml). The Reclaim server is a stateless machine so you can scale it horizontally as much as you want.

With the docker compose up:
- Expose the Reclaim HTTP server behind a reverse proxy (like nginx) to the internet.
- Add HTTPS to the reverse proxy to ensure secure communication.
- Since Reclaim uses a websocket, ensure that the reverse proxy is configured to handle websockets.

Your final RPC URL should look something like `wss://<your-domain>/ws`. To use your server on a mobile device via browser RPC, you can load the page at: `https://<your-domain>/browser-rpc`.
- `proto`: Protobuf spec for client-server communication.
34 changes: 0 additions & 34 deletions docs/readme.md

This file was deleted.

19 changes: 19 additions & 0 deletions docs/run-server.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Run your own Attestor

## Running a Attestor Locally

1. Of course, clone this repository.
2. Ensure you have an env file with at least the `PRIVATE_KEY` set. See the [.env.sample](.env.sample) file to see all available options.
3. Optional: build the browser RPC files with `npm run build:browser`. More on this in the [docs](docs/browser-rpc.md).
4. Run the attestor server with `npm run start:tsc`. This will start the server on port 8001 by default.

## Deploying to the Cloud

You can deploy your own Reclaim server via the [docker-compose](/docker-compose.yaml). The Reclaim server is a stateless machine so you can scale it horizontally as much as you want.

With the docker compose up:
- Expose the Reclaim HTTP server behind a reverse proxy (like nginx) to the internet.
- Add HTTPS to the reverse proxy to ensure secure communication.
- Since Reclaim uses a websocket, ensure that the reverse proxy is configured to handle websockets.

Your final RPC URL should look something like `wss://<your-domain>/ws`. To use your server on a mobile device via browser RPC, you can load the page at: `https://<your-domain>/browser-rpc`.
Loading

0 comments on commit 0953860

Please sign in to comment.