Coder Social home page Coder Social logo

domain-payment's Introduction

Domain Payment

Description

This is a gRPC service used to create and manage user payment records and transactions.

Prerequisites

This gRPC service requires the following software:

  • NodeJS version 18 or higher.
  • Informix database.
  • Yarn for package management.

We highly recommend installing volta.sh to automatically manage NodeJS and Yarn versions. If you need to run Informix locally, Docker is a suitable option.

Setup Steps

1. Installing Dependencies

Install NodeJS and Yarn via volta.sh.

2. Protoc Compiler

A protoc compiler is required to generate stubs from protobuf definitions. You can follow instructions from the protobuf GitHub repo to install it on your machine.

3. Protobuf Definitions

The protobuf definitions for this project are located on the 'payment-api' branch of the repository https://github.com/topcoder-platform/plat-interface-definition. Clone the repository and switch to the 'payment-api' branch to access these definitions.

4. Informix Setup

To run a local copy of Informix with the relevant tables, execute the following command in Docker:

docker run -p 2021:2021 -it appiriodevops/informix:1b3d4ef

If you are running this on an Apple Silicon Mac, you need to include the --platform linux/amd64 flag:

docker run --platform linux/amd64 -p 2021:2021 -it appiriodevops/informix:1b3d4ef

5. Private NPM Repository Access

This project uses a private NPM repository. You will need a connection key to download the @topcoder-framework/ scoped library. Reach out to a member of the platform team to get this key.

6. Informix Access Layer

To run the service with the Informix access layer locally, you need to have the 'feat/sql-expressions' branch of the repo https://github.com/topcoder-platform/informix-access-layer running locally.

7. Setting Up Your Local Environment

After installing the dependencies, create a .env file using the sample.env as an example.

Then, you can install the project dependencies, build the protobuf files, and start the development server with these commands:

yarn install
yarn build:proto
yarn dev

8. gRPC Client

For testing the method calls, you will need a gRPC client. We recommend using Postman. Please refer to the Postman documentation on how to setup and use it for gRPC requests.

Conclusion

If you follow these instructions, you should be able to get the gRPC service running locally on your machine. For any issues or additional information, please contact the platform team.

domain-payment's People

Contributors

rakibansary avatar

Watchers

 avatar  avatar  avatar  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.