项目作者: namanshenoy

项目描述 :
Test floor Dashboard back-end and Front-end
高级语言: JavaScript
项目地址: git://github.com/namanshenoy/tems_project.git
创建时间: 2018-07-10T20:33:04Z
项目社区:https://github.com/namanshenoy/tems_project

开源协议:

下载


TEMS DAS Backend in ExpressJS


forthebadge
forthebadge
forthebadge
forthebadge
forthebadge
forthebadge
forthebadge
forthebadge

Components

Installation.

  1. Requires Nodejs, npm to be installed.
  1. npm install
  2. npm run start
  1. Requires PostgreSQL server to be installed.
  2. Change Postgres settings in `./config.js`
  3. This will be in the `TEMS_DB` environment variable during production

Sample Graphql Query

Expand


  1. {
  2. getTesterByName(name:"GRONK2") {
  3. id
  4. Slots{
  5. slotNumber
  6. Boards {
  7. boardId
  8. }
  9. Monitors {
  10. name
  11. }
  12. }
  13. Warnings {
  14. message
  15. }
  16. Faults {
  17. date
  18. }
  19. }
  20. }

    Will return

    {
  21. "data": {
  22. "getTesterByName": {
  23. "id": 1,
  24. "Slots": [
  25. {
  26. "slotNumber": 1,
  27. "Boards": [
  28. {
  29. "boardId": "0000-0000-0000"
  30. }
  31. ],
  32. "Monitors": [
  33. {
  34. "name": "Heat"
  35. }
  36. ]
  37. }
  38. ],
  39. "Warnings": [
  40. {
  41. "message": "Error!"
  42. }
  43. ],
  44. "Faults": [
  45. {
  46. "date": "Wed Jul 11 2018 01:44:41 GMT-0400 (Eastern Daylight Time)"
  47. }
  48. ]
  49. }
  50. }
  51. }