@freight-trust/editoken-api
v1.0.0
Published
EDI Token API
Downloads
3
Readme
EDIToken
EDI Token API
Get Started
Get started developing...
# install deps
npm install
# run in development mode
npm run dev
# run tests
npm run test
Install Dependencies
Install all package dependencies (one time operation)
npm install
Usage
Production should use pm2, etc.
Run in development mode
Runs the application is development mode. Should not be used in production
npm run dev
or debug it
npm run dev:debug
Run in production mode
Compiles the application and starts it in production production mode.
npm run compile
npm start
Testing
Run the Mocha unit tests
npm test
or debug them
npm run test:debug
Local Development
Open you're browser to http://localhost:3000
Invoke the
/token
endpointcurl http://localhost:3000/contract/api/v1/token
Troubleshooting
Email [email protected]
Server
npm run dev:debug
Debug Tests
npm run test:debug
Linting
View airbnb linter output
npm run lint
Fix all airbnb linter errors
npm run lint
License
Apache-2.0