Skip to content

UniqueNetwork/unique-scan-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

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

# test coverage
$ npm run test:cov

E2E Tests

  1. Set environment variables in .env
    1. WS_PROVIDER_URL - blockchain ws (for local use: 'ws://host.docker.internal:9944')
    2. TESTS_GRAPHQL_URL - scan api url (for local use: 'http://localhost:3031/v1/graphql')
# start environment
$ npm run integration:tests:start-environment

# run tests
$ npm run integration:tests

# stop environment
$ npm run integration:tests:stop-environment

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.