https://github.com/garthdb/copilot
A custom front end for Nightscout's Healthcare Portal
https://github.com/garthdb/copilot
Last synced: 4 months 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-30T18:16:23.000Z (over 9 years ago)
- Last Synced: 2025-03-20T09:57:54.822Z (4 months ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 1
- Watchers: 2
- 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.