Giter Club home page Giter Club logo

car-safety-shiny's People

Contributors

kaczmarj avatar

Watchers

 avatar  avatar  avatar

car-safety-shiny's Issues

how do we show error messages to the user?

some cars do not have the information required for this app. if a user selects one of those cars, we should show a message indicating that the data doesn't exist.

rshiny has a validate function which might be useful.

Docker file is not cache friendly

I believe the docker file would be slightly more efficient if the RUN line was before the COPY line.

The copy line will result in a different layer hash each time code is changed & copied into docker, which will invalidate the cache for all the subsequent commands.
This would mean the
RUN install2.r curl jsonlite && rm -rf /tmp/downloaded_packages line would be re-run every time code is changed.

If the lines are re-ordered (below) then the install line would be cached between builds & thus speed up image building slightly.

FROM rocker/shiny:4.1.2
RUN install2.r curl jsonlite \
    && rm -rf /tmp/downloaded_packages
COPY . /srv/shiny-server
USER shiny

how do we handle errors in api fetches

we might run into errors with the api. it might rate limit us or not return data once in a while, and in those cases, we should alert the user that we're having problems accessing the api.

related to this, we might make an erroneous api request, that would lead to a 404. how should we handle these things? try/catch?

how do we structure reactive code?

at the moment, i'm mostly using observe to update things like the selection choices and the car information. but how should this actually be done? what's the best way?

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.