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

Documentation and readme #80

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 27 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,47 @@
# Mina Mesh
<div align="center">

[![checks](https://github.com/MinaFoundation/MinaMesh/actions/workflows/checks.yaml/badge.svg)](https://github.com/MinaFoundation/MinaMesh/actions/workflows/checks.yaml)
[![Crates.io](https://img.shields.io/crates/v/mina_mesh?label=crates.io&color=blue)](https://crates.io/crates/mina_mesh/versions)
[![Downloads](https://img.shields.io/crates/d/mina_mesh?color=green)](https://crates.io/crates/mina_mesh)
![License](https://img.shields.io/badge/license-Apache%202.0-blue)

# **Mina Mesh**

Mina Mesh is an implementation of the
[Coinbase Mesh specification](https://docs.cdp.coinbase.com/mesh/docs/welcome) for the
[Mina blockchain](https://minaprotocol.com/).

> Note: Mina Mesh is WIP and should not yet be used in production.

## Installation

Ensure you have the Rust toolchain installed. If you do not, see
[installation instructions here](https://www.rust-lang.org/tools/install).
🚧 _**Note:** Mina Mesh is a work in progress (WIP) and should not yet be used in production._

```sh
# Install
cargo install [email protected]
</div>

# Confirm installation
mina-mesh --help
```
---

> Note: the version specifier is necessary when installing from the `beta` release channel. The
> latest version can be found on
> [`mina_mesh`'s crates.io page](https://crates.io/crates/mina_mesh/versions).
## **Documentation**

## Environment
Looking to get started? Check out the
**[Mina Mesh Wiki](https://github.com/MinaFoundation/MinaMesh/wiki)** for:

The server depends on several environment variables.
- Installation instructions
- Configuration details
- Usage examples

- `MINAMESH_PROXY_URL`: a Mina proxy (GraphQL) endpoint. The default is
`https://mainnet.minaprotocol.network/graphql`.
- `MINAMESH_ARCHIVE_DATABASE_URL`: a connection string referencing a Mina archive database.
---

## Instantiate the Server
## **Code of Conduct**

```sh
mina-mesh serve --playground
```
Please ensure you adhere to our [Code of Conduct](CODE_OF_CONDUCT.md) when interacting in this
repository.

> Note: the presence of the `--playground` flag enables the serving of an OpenAPI playground in
> response to `GET /`. To disable this endpoint, omit the `--playground` flag.
---

Visit [`http://0.0.0.0:3000`](http://0.0.0.0:3000) for an interactive playground with which you can
explore and test endpoints.

## Code of Conduct

Everyone interacting in this repo is expected to follow the [code of conduct](CODE_OF_CONDUCT.md).

## Contributing
## **Contributing**

Contributions are welcome and appreciated! Check out the [contributing guide](CONTRIBUTING.md)
before you dive in.

## License
---

## **License**

Mina Mesh is [Apache licensed](LICENSE).
Mina Mesh is licensed under the [Apache License 2.0](LICENSE).
Loading