Skip to content

OpenAgriNet/OAN-Provider-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-Provider-Service Reference App

OAN provider service is reference app for adding contents related to oan network. Provider can register themselves and add their contents to this app. Provider can create/read/update/delete their contents.

Steps to install this app.

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

  2. cd OAN-Provider-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= {{hasura_url}}/v1/graphql
     HASURA_GRAPHQL_ADMIN_SECRET= "<SECRETKEY>"
     DB_TYPE=postgres
     DB_HOST=localhost
     DB_PORT=5432
     DB_USERNAME=hasura
     DB_PASSWORD=hasura
     DB_NAME=hasura_db
     S3_REGION=ap-south-1
     S3_BUCKET=<S3_BUCKET>
     SECRET_ACCESS_KEY=<SECRET_ACCESS_KEY>
     ACCESS_KEY_ID=<ACCESS_KEY_ID>
     EXPIRES_IN=3600
    
  7. Restart the server: npm run start

Postman Documentation:

link: https://www.postman.com/grey-escape-31127/workspace/icar-reference-app/collection/18319029-1a41994e-a329-4c15-b965-1ee478a6e71f?action=share&creator=18319029

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages