A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ npm install# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:covOAN-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.
-
Git clone https://github.com/OpenAgriNet/OAN-Seeker-Service.git
-
cd OAN-Seeker-Service
-
npm install
-
npm run start
-
run http://localhost:3000 on your browser to test the app is running
-
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>" -
Restart the server: npm run start
Postman Documentation: