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-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.
-
Git clone https://github.com/OpenAgriNet/OAN-Provider-Service
-
cd OAN-Provider-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= {{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 -
Restart the server: npm run start
Postman Documentation: