1.0.0 • Published 3 years ago

retool-proxy v1.0.0

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
3 years ago

Retool-Proxy

A web service that interact with retool database for validating user email and store scraping data from partner chrome extension.

Overview

The retool proxy service serves as the middle layer for partner chrome extension and retool database, it can validate if user exist as partner in retool db, and also send scrapping data into retool db.

Getting Started

Requirements

  • Node version v15.4.0 (Specified in .nvmrc)
  • npm or yarn
  • MongoDB instance (local or remote)
  • Botkeeper Auth API

Setup

$ git clone https://gitlab.com/botkeeper/retool-proxy
$ cp .env.sample .env
$ cd retool-proxy
$ npm install
$ npm run watch                 # For build and run the project

You should now be able to access the API via http://localhost:3000

Find API Docs in Postman under 'Scalebot' Workspace

Dependencies (TODO)

Deployment

Testing

API Keys

You need to include a valid api key for your local ADMIN_API_KEY environment variable.

To create a valid API Key:

  1. Create new service retool-proxy locally through admin_ui if one does not exist
  2. For this new service, create roles and permissions if they don't exist
  3. Be sure the admin access role has permissions can_read_retool_data and can_write_retool_data
  4. Create a new api key with owner retool-proxy and api key role client for the Admin service, and api key role admin for the retool-proxy service

Versioning

This was originally set up without api versioning in mind. We're starting at V1. If you add new route, it should first go to the generic /routers folder. If it needs to be versioned then you would add it to /routers/v1, etc.