cdock1029 / ceres Goto Github PK
View Code? Open in Web Editor NEWCloud data collector
Cloud data collector
The package should contain package.json
file to indicate the dependencies. Then we can use npm install
.
Since we provide database interface to public, I was worried about the data security through the query expression. The main idea is to perform query expression pre-validation before it goes to database. That will prevent people accidentally or on purposely mess-up the database. But I am not a mongoDB expert, so I am not sure this problem. I notice that we already have several validation modules in source tree but haven't really implement it.
Therefore, so far I think do some simple data validation is enough to address this requirements. And as long as we separate the function out, we could always keep improve it later.
I am currently testing the service through a web application. The requests send from the apps get reject due to the cross-origin prevention. Can we set our response header to properly allow my app host to access the resources?
XMLHttpRequest cannot load http://light.home:9999/data. Origin http://dev.yesgoody.com is not allowed by Access-Control-Allow-Origin.
http://stackoverflow.com/questions/14185383/cross-domain-cors-support-for-backbone-js
our current api separate different functions through different url. It could be more simplicity and data-model oriented. In general, we have two layers apis. The first one works on the low level raw data which provides CURD operations, collect, read, update and delete. The second one works on the higher level analytic level, which provides aggregate metrics. By understanding above, I propose the following url style. It is heavily influenced by RESTful style, therefore will be more easy and compatiable for us to develop client App throught existed framework
POST /collect
-> POST /data
GET /query
-> GET /data
POST /modify
-> PUT /data
POST /delete
-> DELETE /data
GET /metrics
-> GET /metrics
POST /metrics
-> POST /metrics
improve the mongdb configuration to handle the third-part mongoDB uri.
For example, the project can be configured to use free development mongoDB, mongohq.
mongodb://<user>:<password>@<host>:<port>/<dbname>
you can create a free mongoHQ development instance on their site, or email me to get it from my account.
yajl seems a fast json library. But we need install a non nodejs requirement.
Do we really heavily using that now?
Can we use build-in implementation or alternative method?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.