0.2.11 • Published 4 months ago

@sunnydayfund/sunrise-sdk v0.2.11

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

Sunrise SDK

To build from current state of API code:

  1. Navigate to core/ & run the following command:
nest start

Then press Ctrl+C to stop execution of the Nest app. The startup process will place a file called swagger-spec.json in the sdk/ directory.

  1. Navigate to the sdk/ directory & run this command:
npm run build

This will run @openapitools/openapi-generator-cli and place the newly generated code in the sdk/lib directory, then run the TypeScript compiler on the generated library in lib/dist/.

Note: You must have Java 11 installed in order to use the latest version of the OpenAPITools generator via npx. You can achieve this by running the following commands:

brew tap AdoptOpenJDK/openjdk
brew install --cask adoptopenjdk11

Or by downloading the appropriate installer for Windows{:target="_blank"}

You will then need to add Java to your path. Add the following lines to a system config file, such as ~/.bash_profile or ~/.zshrc:

JAVA_HOME=$(/usr/libexec/java_home -v 11)
export PATH=$JAVA_HOME/bin:$PATH

To test locally:

  1. Navigate to sdk/ and run npm link.
  2. Navigate to your client application directory and run npm link @sunnydayfund/sunrise-sdk. This will create a symbolic link in your app's node_modules/ that will temporarily allow you to use the local build like any other dependency. This will be reset by npm i and a variety of other commands.

To find out more about how this works, check out the npm-link documentation.

To use the most recent stable version from npmjs:

  1. Navigate to your project directory and run npm i -S @sunnydayfund/sunrise-sdk.
  2. Use the package as normally. TypeScript definitions are included, so code hints should be available in supported IDEs.
0.2.11

4 months ago

0.2.10

4 months ago

0.2.9

4 months ago

0.1.0

10 months ago

0.2.0

5 months ago

0.2.7

5 months ago

0.2.6

5 months ago

0.2.8

5 months ago

0.2.3

5 months ago

0.2.2

5 months ago

0.2.5

5 months ago

0.2.4

5 months ago

1.0.0

11 months ago