Skip to content

pekindenis/ReceiptCollector

 
 

Repository files navigation

ReceiptCollector

Go Report Card

Russian Tax service provides mobile application "Проверка чека" to get receipt information online. ReceiptCollector uses nalog.ru api to collect purchase data.

how to build

sudo chmod +x ./build.sh 
./build.sh

how to run

sudo chmod +x ./up.sh 
./up.sh

how to stop

sudo chmod +x ./down.sh 
./down.sh

how to debug

run angular app

cd ./webapp
npm run start

and build and run third-party components

cd ./docker/nginx
./build.sh
cd ../..
./up.dev.sh

Useful scripts

//reset status to allow workers reprocess it.
db.getCollection('receipt_requests').updateMany({check_request_status: 'requested'}, {$set: {check_request_status: 'undefined'}})
//or
db.getCollection('receipt_requests').updateMany({check_request_status: 'error'}, {$set: {check_request_status: 'undefined'}})
//remove obsolete fields.
db.getCollection('receipt_requests').updateMany({}, {$unset: {odfs_request_status: '', odfs_requested: ''}})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 73.5%
  • TypeScript 18.8%
  • HTML 4.8%
  • JavaScript 1.1%
  • Shell 0.7%
  • SCSS 0.6%
  • Dockerfile 0.5%