Skip to content

Proof of Concept Stellar RESTful Web APIs using Nestjs Framework

Notifications You must be signed in to change notification settings

iam-dev/nestjs-stellar-restapi

Repository files navigation

Proof of Concept Stellar RESTful Web API using Nestjs Framework

Stellar Blockchain     Information Nestjs     Official documentation


Installation

$ npm install

Change config file

config.ts example:

export const config = {
  masterAccount: {
    publicKey: '',
    secretKey: ''
  },
  stellarServer: 'https://horizon-testnet.stellar.org',
  mongoDb: {
    host: '@ds1234.mlab.com:41530',
    database: 'nestjs-stellar-restapi',
    username: 'example_username',
    password: 'password1234'
  }
}

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

API

stellar

  • /api/v1/stellar (POST) - to generate a new keypair
  • /api/v1/stellar/{publicKey} (POST) - to create a new Stellar Blockchain account

Testing

Send POST request to http://localhost:3000/api/v1/stellar/

About

Proof of Concept Stellar RESTful Web APIs using Nestjs Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published