Moralis-JS-SDK icon indicating copy to clipboard operation
Moralis-JS-SDK copied to clipboard

Feat/express proxy

Open sogunshola opened this issue 1 year ago • 3 comments


name: Express app api proxy using axios

New Pull Request

Checklist

  • [X] I am not disclosing a vulnerability.
  • [X] My code is conform the code style
  • [X] I have made corresponding changes to the documentation
  • [X] I have updated Typescript definitions when needed

Issue Description

Related issue: #FILL_THIS_OUT

Solution Description

sogunshola avatar Aug 09 '22 19:08 sogunshola

🦋 Changeset detected

Latest commit: cc416fa5bc98748699f0a1a03e29cb3ecf11874f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@moralisweb3/api-utils Minor
moralis Minor
@moralisweb3/core Minor
@moralisweb3/auth Minor
@moralisweb3/evm-utils Minor
@moralisweb3/sol-utils Minor
@moralisweb3/evm-api Minor
@moralisweb3/sol-api Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Aug 09 '22 19:08 changeset-bot[bot]

Sorry for multiple requests. I've already finished. 😄

b4rtaz avatar Aug 09 '22 20:08 b4rtaz

I think the below files:

demos/express-proxy/src/api/*
demos/express-proxy/src/apiRouter.ts
demos/express-proxy/src/middlewares/*

You can extract to own package: @moralisweb3/express. The demo app will use this package.

By this, you can easily attach proxy to demos/express-proxy and demos/parse-server and keep the code in single place.

b4rtaz avatar Aug 15 '22 12:08 b4rtaz

Currently I see references to both redis and express-rate-limit. Can we only use express-rate-limit in this demo?

ErnoW avatar Aug 19 '22 09:08 ErnoW

Other than that, this demo looks good to me

ErnoW avatar Aug 19 '22 09:08 ErnoW