Giter Club home page Giter Club logo

easy-web-app's People

Contributors

dependabot[bot] avatar ma-ha avatar mjisaak avatar

Stargazers

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

Watchers

 avatar  avatar

easy-web-app's Issues

Architecture

Hi,

I would like to know more about the architecture of this. Will you able to guide?

Module for basic results formatting?

The table formatting is really neat, however I have a use case for some really simple data formatting. In this case, I just have a single JSON object as a result that I would like to display its properties. Problem is that I cannot see a module that can do this cleanly for me. I can see that there is the markdown one that I have done a simple display like this:

app.get('/md/:page', async function (req, res) {
  switch(req.params.page) {
    case 'info':
      var sts = new aws.STS();
      sts.getCallerIdentity().promise().then(callerIdentity => {
        res.send(
          `# Connection Information
          Account: ${callerIdentity.Account}
          ARN: ${callerIdentity.Arn}
          User: ${callerIdentity.UserId}
          
          # Current Configuration
          ${JSON.stringify(currconfig)}
          `
        )
      })
    break;
  }
})

annoyingly though, i have had to change the resftul response to be the markdown I want displayed, instead of the original JSON based response that i originally had. It is okay, but it would be nicer if there was a module that allowed me to define how to format this kind of stuff, perhaps even being markdown itself?

My main challenge is that I am now going to implement a POST method that will hit a different service and get its response, but that response could be anything, and it definitely won't be an array of results. Most likely, I am going to handle the call to this other API by using the neat logic here with an "app.post" to hit it and I can have that deal with the response that might come back, but (at least in my head) that response i would format would be a JSON response, and i would like to have a neat way to present that data in a similar way that I did with that markdown.

Do you already have some kind of capability in place for what I am trying to achieve here, or is this something that a new "module" would be needed for?

Some guides on modifying layout would be very useful

I'm starting to ramp up my efforts in using this and it is working to provide a UI my restful functions which is great! The problem I'm starting to hit is that it is getting confusing understanding how the layout works so i can get it looking a bit nicer. An example of what I am trying to achieve is this:

I have a page with two views: a form and a table. I have successfully got it working so that the form queries an API, gets the results and shows it. Problem is that the view is very restrictive and i want it so that the entire view enlarges to fit the contents (so the page scrolls rather than the smaller view). It seems I am stuck with fixed pixel sizing. My attempts to do things like setting the "height" of the table to 100% does now work as while I can see this directive in the css class correctly, it gets overidden by a specific "style" that is being applied to the object that sets the height to something like 22px and i cannot find a way to override this behaviour.

It would be great if you could provide some more detailed guides on how to adjust the layouts with various examples. I'm sure there are ways I could hack the CSS to get it to behave the way I need it to, but I am intentionally trying to avoid mucking around with UI stuff so I can just write the functions I need and get on with my day.

How to implement authorisation with an external authority?

I've been watching this project for a while and I am really impressed with it. I am keen to try and make use of it, but I need to validate its viability first. One thing I am trying to achieve is to get some kind of authorization going. I don't want to manage my own username/password stuff and would love if we could easily do something like github authentication or something.

Do you have any thoughts or examples on how I might implement that? My current alternative is to hide it in our cluster and restrict access using kube proxying, but if we can get something a bit slicker than that, it would make things a lot easier.

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.