Skip to content

MyBitFoundation/MyBit-Transparency.tech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyBit-Transparency.tech

🔷 MyBit API Endpoint for our Basecamp projects server in our Transparency Portal

Introduction

This repository is meant to be the source code for our official endpoint https://hq-api.mybit.io, which allows our front end application to retrieve access to our Basecamp, where we coordinate all activities from MyBit AG.

Setup

The project requires an authorised client account that can be used for interacting with the application. In our case, we created a bot account that authenticates with Datafire in order to create an oauth token to be used within the application.

To get the token, run the following command:

npx datafire authenticate basecamp

Afterwards, provide the information related to the client_id and client_secret in order to trigger the Oauth2 workflow from your local machine. This will save the credentials to a DataFire-accounts.yml which will be then passed to our .env file with the following format:

CLIENT_ID=
CLIENT_SECRET=
ACCESS_TOKEN=
REFRESH_TOKEN=
ACCOUNT_ID=4144184

Deployment

now --dotenv .env --name hq-api.mybit.io

About

🔷 MyBit API Endpoint for our Basecamp projects server in our Transparency Portal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published