Giter Club home page Giter Club logo

api's Introduction

README-like things should go here.

api's People

Contributors

acropup avatar armyofevilrobots avatar dependabot[bot] avatar garthomite avatar interlock avatar jarrettr avatar lukec avatar tyisi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

acropup

api's Issues

Make VHSAPI Docker Image

http://api.hackspace.ca needs to be migrated to the Talk server, which uses docker to manage its web services. We'll need to create a docker image of VHSAPI, deploy it to the Talk server, test it, and then reconfigure DNS entries for api.hackspace.ca and isvhsopen.com.

Important setup files:
README.md - install notes
INSTALL.sh - moves the config scritps below
etc/service/vhsapi/run - starts perl service
etc/nginx/vhs-api - nginx config

Here is a start to a Dockerfile:

FROM ubuntu         #Not sure what the Talk server is running

RUN apt-get update && apt-get install libexpat1-dev libssl-dev daemontools daemontools-run
#Do we need to apt-get carton as well?
RUN carton install

EXPOSE 3000        #VHSAPI listens on this port
CMD ["api/etc/service/vhsapi/run"]

datapoint.js validation comments

api/src/datapoint.js

The following two function names, along with their comments, imply that the functions do more validation than they actually do. I don't know where these functions are used, so I'm not sure if it's the names and comments that are wrong, or if the body of the functions needs fixing. @interlock?

49:
// validate the space and datapoint name
_validateSpaceName: function(space, name) {

56:
// validate the space and datapoint name, value pair
_validateSpaceNameValue: function(space, name, value) {

Datapoint update takes seconds to complete

It's taking up to 5 seconds for a value update to change the value received upon a query. I don't know enough about this framework to know if this is expected.

To Reproduce:
Prepare two web browser tabs.

  1. Update tab: http://api.hackspace.ca/s/vhs/data/test1/update?value=test1
  2. Query tab: http://api.hackspace.ca/s/vhs/data/test1.txt

Go to Query tab, and make sure the value is different from the value being submitted in the Update's querystring.
Submit Update query, i.e. go to Update URL.
Immediately switch to Query tab, press F5 repeatedly and watch for change.

Current Behaviour:
The value seems to change within 5 seconds of submitting an update.

Expected Behaviour:
The first query after an update, no matter how soon after, should return the updated value.

@interlock, do you have any idea why this is happening?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.