This is an spec compliant ao
Messenger Unit, implemented as a Node Express
Server.
First install dependencies using npm i
Then simply start the server using npm start
or npm run dev
if you are
working on the project locally. This will start a hot-reload process listening
on port 3005
by default.
There are a few environment variables that you can set:
CU_URL
: Whichao
Compute Unit to use (defaults tohttp://localhost:6363
in development mode)PORT
: Which port the web server should listen on (defaults to port3005
)GRAPHQL_URL
: The url for the Arweave Gateway GraphQL server to be used by the MU. (defaults to https://arweave.net/graphql)PATH_TO_WALLET
: the path to the wallet JWK interface you would like themu
to use to sign messages that it is pushingDEBUG
: if DEBUG=* or DEBUG=ao-mu* then verbose debug logs will be provided in the console.UPLOADER_URL
: URL to upload service (defualts to https://up.arweave.net)
You can also use a
.env
file to set environment variables when running in development mode, See the.env.example
for an example.env
You can execute unit tests by running npm test
You can enable verbose debug logging on the Web Server, by setting the DEBUG
environment variable to the scope of logs you're interested in
All logging is scoped under the name ao-mu*