Skip to main content

The Bugout blockchain inspector API.

Project description

moonstream backend

Installation and setup

To set up Moonstream API for development, do the following:

Run server with Docker

To be able to run Moonstream API with your existing local or development services as database, you need to build your own setup. Be aware! The files with environment variables docker.dev.env lives inside your docker container!

  • Copy configs/sample.env to configs/docker.dev.env, or use your local configs from configs/dev.env to configs/docker.dev.env
  • Edit in docker.dev.env file MOONSTREAM_DB_URI and other variables if required
  • Clean environment file from export prefix and quotation marks to be able to use it with Docker
sed --in-place 's|^export * ||' configs/docker.dev.env
sed --in-place 's|"||g' configs/docker.dev.env

Build container on your machine

docker build -t moonstreamapi-dev .

Run moonstreamapi-dev container, with following command we specified --network="host" setting which allows to Docker container use localhost interface of your machine (https://docs.docker.com/network/host/)

docker run --name moonstreamapi-dev \
  --network="host" \
  --env-file="configs/docker.dev.env" \
  -p 7481:7481/tcp \
  -ti -d moonstreamapi-dev

Attach to container to see logs

docker container attach moonstreamapi-dev

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moonstreamapi-0.4.11.tar.gz (107.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moonstreamapi-0.4.11-py3-none-any.whl (128.8 kB view details)

Uploaded Python 3

File details

Details for the file moonstreamapi-0.4.11.tar.gz.

File metadata

  • Download URL: moonstreamapi-0.4.11.tar.gz
  • Upload date:
  • Size: 107.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.18

File hashes

Hashes for moonstreamapi-0.4.11.tar.gz
Algorithm Hash digest
SHA256 f58c0c0625942c855a30714be2ecfc05808bef4b48ff0b3ba89025b6fd04c097
MD5 50f9938f4a525d105a44f3616d455b38
BLAKE2b-256 fa8c9cc2e868be8c2cc8af6dceb4e05207140be5fe75a13b772d02693fb49a82

See more details on using hashes here.

File details

Details for the file moonstreamapi-0.4.11-py3-none-any.whl.

File metadata

  • Download URL: moonstreamapi-0.4.11-py3-none-any.whl
  • Upload date:
  • Size: 128.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.18

File hashes

Hashes for moonstreamapi-0.4.11-py3-none-any.whl
Algorithm Hash digest
SHA256 73533267f7755433210d34bc138739c51c86e2d2749f1c14634b937ec9192c40
MD5 518b8c128f25c0c0e8ca041e15071f60
BLAKE2b-256 5f44b651316d3732fae3d72397e2cde0004d05b6838729a91e5cd40536c983b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page