-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d93385e
commit 874fb37
Showing
1 changed file
with
27 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |