npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

divido-application-api-v0

v1.0.2

Published

Private api for application requests

Downloads

6

Readme

Application Service

Development set up

Start by pulling down the microservices environment and the authentication api.

cd ~/code/divido
git clone [email protected]:DividoFinancialServices/microservices-environment.git
cd microservices-environment
make down && make base
cd ~/code/divido
git clone [email protected]:DividoFinancialServices/authentication-service.git
cd authentication-service
make down && make up

Then clone this repo.

cd ~/code/divido
git clone [email protected]:DividoFinancialServices/application-service.git
cd application-service
make down && make up
composer install

You will also need the lambda calculator service if you want to create applications.

cd ~/code/divido
git clone [email protected]:DividoFinancialServices/lambda-calculator.git
cd lambda-calculator
make down && make up

And in order to use platform triggers to update activations/cancellations/refunds:

cd ~/code/divido
git clone [email protected]:DividoFinancialServices/platform.git
cd platform/app/library
composer install
cd ../../
make down && make up

You can now call the application service endpoints directly, or through the public apis. To do this, clone one (or both) of the following:

cd ~/code/divido
git clone [email protected]:DividoFinancialServices/merchant-api.git
cd merchant-api
make down && make up
composer install
cd ~/code/divido
git clone [email protected]:DividoFinancialServices/merchant-portal-api.git
cd merchant-portal-api
make down && make up
composer install

Using aws

If you want to fetch applications using cloudsearch, you will need to have aws credentials in place. Make sure you have aws credentials in your local ~/.aws/credentials file eg:

[default]
aws_access_key_id = YOUR-KEY-HERE
aws_secret_access_key = YOUR-SECRET-HERE

You can get these credentials from logging in to AWS, navigating to: IAM -> Users -> [Your Name] -> Security credentials [tab] -> Create access key

Test running services:

Open Paw project "Merchant Api" and test GET Health and GET Health from Application Service. The former will test the merchant-api. The latter will test http calls to the application service through the merchant api.

Database:

The database schema/seeds are a bit tricky and needs some modification before it can be used.

Here are the credentials:

Divido Microservices Local
Host: 127.0.0.1
Username: root
Password: divido
Port 3306

Get a copy of the database from either sandbox or testing.

Notes:

  • Ignore warnings regarding Table 'divido.schema_version'. It doesn't affect the integrity of the application.
  • In document, change the schema deleted_at to have a default value of NULL instead of CURRENT_TIMESTAMP otherwise every document created will immediately be soft-deleted.
  • You may need to alter the application table:
ALTER TABLE application ALTER deposit_status SET DEFAULT '', ALTER deposit_reference SET DEFAULT '';
ALTER TABLE application MODIFY purchase_price int(11) null;
ALTER TABLE application MODIFY deposit_amount int(11) null;
ALTER TABLE application MODIFY commission int(11) null;
ALTER TABLE application MODIFY partner_commission int(11) null;
ALTER TABLE application MODIFY lender_fee int(11) null;