项目作者: ssss1029

项目描述 :
This is a test application that is meant to be a proof of concept for a future app that reads and processes pictures of receipts.
高级语言: JavaScript
项目地址: git://github.com/ssss1029/receipts.git
创建时间: 2017-05-23T06:02:59Z
项目社区:https://github.com/ssss1029/receipts

开源协议:

下载


receipts

This is a test application that is meant to be a proof of concept for a future app that reads and processes receipts.

// Currently in the works

To run the server:

  1. sudo mongod
  1. npm install
  2. node serve

You can also use nodemon to run the server, but ignoring the uploads directory

  1. sudo mongod
  1. nodemon serve --ignore uploads

There might be a problem with on app.js:

  1. app.use(function(err, req, res, next) {
  2. // set locals, only providing error in development
  3. res.locals.message = err.message;
  4. res.locals.error = req.app.get('env') === 'development' ? err : {};
  5. if (err) {
  6. console.log(err);
  7. }
  8. // render the error page
  9. res.status(err.status || 500);
  10. res.render('error');
  11. });

Errors are not displaying without the if case in the middle. Tried debugging, haven’t figured out why its doing that yet (5/28/2017)