Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garthdb/copilot
A custom front end for Nightscout's Healthcare Portal
https://github.com/garthdb/copilot
Last synced: about 1 month ago
JSON representation
A custom front end for Nightscout's Healthcare Portal
- Host: GitHub
- URL: https://github.com/garthdb/copilot
- Owner: GarthDB
- Created: 2015-01-27T16:44:15.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-30T18:16:23.000Z (about 9 years ago)
- Last Synced: 2024-11-29T15:53:19.417Z (about 1 month ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# copilot
A custom front end for Nightscout's Healthcare PortalI have not yet hit a minimal viable product (mvp), so I am working just on master, for now.
For local testing, I am allowing full cross domain stuff in my local nightscout.
In my server.js file I've added this (not recommended for production code). When I hit an mvp I'll be setting up a way to move it over to nightscout.
``` javascript
var allowCrossDomain = function(req, res, next) {
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS');
res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization, Content-Length, X-Requested-With');// intercept OPTIONS method
if ('OPTIONS' == req.method) {
res.send(200);
}
else {
next();
}
};
```
For now, Copilot is being designed for use with a vertical iPad. More work on other products/orientations to come.