Distributed
M3O distributed network
Overview
Distributed is a community based web app built on top of the M3O
platform. The idea is to leverage our APIs and build an app that enables
sharing of Micro services. It's initially based around an async message board.
Usage
Distributed is built as a single Go binary with embedded html and backed by M3O APIs.
API Key
Get an API key from m3o.com and export as
export M3O_API_TOKEN=xxxxxx
Current scopes required cache, cron, db, email, search, user, wallet
Run Server
Download and run the latest release
./home
Using Docker
sudo docker run -p=8080:8080 -e M3O_API_TOKEN=xxxxxx ghcr.io/m3o/distributed:latest
Your app should be listening on localhost:8080
Deploy to DigitalOcean
Deploy to Google Cloud Run
Deploy to M3O Cloud
Download the m3o-cli
m3o app run \
--name=home \
--repo=https://github.com/m3o/distributed \
--branch=master \
--port=8080 \
--env_vars=M3O_API_TOKEN=$M3O_API_TOKEN
Development
For local development fork the project
- Edit frontend in web/
- Edit backend in api/
Run the app with
go run cmd/home/main.go
Docker Build
## build it
sudo docker build .
## run it
sudo docker run -p=8080:8080 -e M3O_API_TOKEN=xxxxx [IMAGE ID]