Serves API end-points for any functionality related to Business Carbon Calculator (Free version).
🚧 Warning
It is currently not possible for developers not associated with Normative to start this service as it requires access to protected resources.
One time set-up, for system dependencies such as nvm and npm. Before beginning, ensure nvm
is installed and you're a member of npmjs.com/org/normative.
$ nvm use
$ npm login # login to personal npm account
$ nvm install-latest-npm
Make a copy of .env.dev.sample
, fill the values (ex: MONGO_URI) and save as .env.dev
in the same folder.
$ nvm use
$ npm install
$ npm start data-upload # running on localhost:3333
Tests are written using Jest.
$ nvm use
$ npm run test data-upload
./
├── src/
├── app/ -- Home for starting the microservice.
├── assets/ -- Contains trademarked assets
├── calculatedImpact/ -- Houses the application logic for fetching impacts.
├── starter/ -- Houses the application logic for processing a starter entry
├── constants.ts -- Houses the shared constants
└── main.ts -- Script to start the microservice
├── Dockerfile
├── README.md
├── jest.config.js
├── tsconfig.app.json
├── tsconfig.json
└── tsconfig.spec.json