distributed

module
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2022 License: Apache-2.0

README

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 DO

Deploy to Google Cloud Run

Run on Google Cloud

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]

Directories

Path Synopsis
Package api provides the API building blocks for distributed
Package api provides the API building blocks for distributed
cmd
Package web includes the web frontend
Package web includes the web frontend

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL