Giter Site home page Giter Site logo

polkahub-backend's Introduction

alt text

Polkahub Backend

This is Polkahub Backend.

Status

POC. Active development.

Building

Install Rust:

curl https://sh.rustup.rs -sSf | sh

Build:

cargo build

Prepare .env file with default environment variables:

cp .env.example .env

Run

cargo run

Environment variables description

SERVER_IP - IP address for binding, e.g. 127.0.0.1

SERVER_PORT - port for binding, e.g. 8080

BASE_DOMAIN - base domain where nodes will deploy, e.g. "example.org"

BASE_REPO_DIR - home directory for git repositories, e.g. "repo"

BASE_REPO_DOMAIN - base domain where git repositories storied, e.g. "example.org"

JENKINS_API - Jenkins API URL, e.g. "localhost:8080"

JENKINS_API_USER - Jenkins API user, e.g. "user"

JENKINS_API_TOKEN - Jenkins API token, e.g. "token"

JOB_NAME - Jenkins job name for building projects, e.g. "job"

DEPLOYER_API - Deployer API URL, e.g. "localhost:8081"

DEPLOYER_API_USER - Deployer API user, e.g. "user"

DEPLOYER_API_PASSWORD - Deployer API password, e.g. "password"

POSTGRES_HOST - Postgres host, e.g. "127.0.0.1"

POSTGRES_PORT - Postgres port, e.g. 5432

POSTGRES_DATABASE - Postgres database name, e.g. "polkahub"

POSTGRES_USER - Postgres user, e.g. "polkahub"

POSTGRES_PASSWORD - Postgres password, e.g. "password"

POSTGRES_SALT - Postgres salt, e.g. "salt"

JWT_SECRET - JWT secret, e.g. "secret"

MAILGUN_SENDER_API - Mailgun Sender API url, e.g. "http://localhost:8082/api/v1/send_email"

MAILGUN_SENDER_API_USER - Mailgun Sender API user, e.g. "user"

MAILGUN_SENDER_API_PASSWORD - Mailgun Sender API password, e.g. "password"

polkahub-backend's People

Contributors

0xbuidlman avatar andor0 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.