DEV Community

Cover image for OCAPI-Proxy v2.1.4
John Facey
John Facey

Posted on

1 1

OCAPI-Proxy v2.1.4

OCAPI-Proxy v2.1.4

https://www.npmjs.com/package/ocapi-proxy
https://github.com/johnfacey/ocapi-proxy

Description:

This project serves as a Node.js based proxy server that will forward requests to an Salesforce Commerce Cloud OCAPI instance. This can be used for purposes such as testing 3rd party apps using OCAPI as well as integration for mobile/browser apps.

Feel free to use this as a middleware solution or build your own middleware on top of it for your needs.

Purpose:

I have worked on many OCAPI projects and learned that this was a great way to test OCAPI calls as well a way to do more Node.js integrations with the Salesforce Platform.

User Interface - OCAPI-Proxy

Base Features include:

Proxying calls to an SFCC interface.
Auto generation of default config file on installation.
Configuration of Proxy(8080) and UI(80) ports default.
Universal Google Analytics tagging by config.json.
Extensive logging.
Sample Postman Suite included.
NPM deployable.

Sample Postman Suite

https://www.npmjs.com/package/ocapi-proxy
https://github.com/johnfacey/ocapi-proxy

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up