Skip to content

OpenAgriNet/OAN-Seeker-Service

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

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

About

OAN-Seeker-Service Reference App

OAN Seeker service is middleware for calling the protocol transaction api and caching the search content in cache db to store and refresh the content on daily basis using corn job.

Steps to install this app.

  1. Git clone https://github.com/OpenAgriNet/OAN-Seeker-Service.git

  2. cd OAN-Seeker-Service

  3. npm install

  4. npm run start

  5. run http://localhost:3000 on your browser to test the app is running

  6. Add .env file in this format

     PORT=3000
     HASURA_URL= {{base_url}}/v1/graphql
     HASURA_GRAPHQL_ADMIN_SECRET= "<HASURA_GRAPHQL_ADMIN_SECRET>"
     DB_TYPE=postgres
     DB_HOST=localhost
     DB_PORT=5432
     DB_USERNAME=hasura
     DB_PASSWORD=hasura
     DB_NAME=hasura_db
     CACHE_DB="scheme_cache_data"
     REDIS_HOST=localhost
     REDIS_PORT=6379
     API_KEY=<WEATHERMAP_API_KEY>
     GEO_URL=http://api.openweathermap.org/geo/1.0/direct
    
     DOMAIN="schemes:oan"
     BAP_CLIENT_URL="<BAP_CLIENT_URL>"
     BAP_ID="<BAP_ID>"
     BAP_URI="<BAP_URI>"
     BPP_ID="<BPP_ID>"
     BPP_URI="<BPP_ID>"
    
  7. Restart the server: npm run start

Postman Documentation:

link: https://grey-escape-31127.postman.co/documentation/18319029-f20a4c89-0dba-45c8-9cc3-0b5b8799fcee/publish?workspaceId=13fbe18d-7c0e-4245-bf2f-0fa5d5758b3a

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages