Copy .env.example
to .env
and change port to desired one if necessary.
For install run npm run install
To run app in DEV environment just run npm run dev
. The server will be reachable at defined port.
npm run build
to compile codenpm start
to start application
Open index.html
in your browser after server install and watch for console changes.
CURL or just send typical POST
request to http://localhost:1337
:
- endpoint:
/api/scan
- method
POST
- params
{scanId}
, example: 1. (available 1-100) - responses:
- 200 - ok
{message: 'Data processed'}
- 200 - ok
After running APP there will be local temporary database created with 100 records inside.