by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    officialjoemayami
    @officialjoemayami
    Ok
    Manish Vachharajani
    @mvachhar
    Let us know if you need any help in getting things to work with Google cloud SDK and firebase with regard to the action plugin.
    officialjoemayami
    @officialjoemayami
    Ok
    I'm gonna need Gmail account for Adapt to connect with Firebase.
    officialjoemayami
    @officialjoemayami
    Been brainstorming... I need a benchmark, i need a guideline on how you built AWS or MongoDB into Adapt...
    Mark Terrel
    @mterrel
    So probably the best thing to do here is for me to write a little documentation for all users that want to do something similar. I'll try to write up a doc in the next day or so and send it to you. And as you try to use that doc and have questions, I'll revise the doc and eventually it will become part of the user guide. Does that sound ok?
    officialjoemayami
    @officialjoemayami
    Yeah it does.
    officialjoemayami
    @officialjoemayami
    Let me know when you have the guide ready.
    Mark Terrel
    @mterrel
    Sorry, I wasn't able to get to it until now. But I should have something ready for you to read through today.
    Mark Terrel
    @mterrel
    I have a draft of a tutorial on the Action component on my fork on GitHub: https://github.com/mterrel/adapt/blob/action_tutorial/docs/tutorial_action/index.md
    Sorry that took me a while to write up. Please read through it and give me some feedback. Hopefully it's a good start, although you'll likely still need more info.
    officialjoemayami
    @officialjoemayami
    Ok
    officialjoemayami
    @officialjoemayami
    I sent you a dm on Twitter outside the scope of this project i would like you to review and revert. Thank you.
    Rahul Saxena
    @rksio_twitter
    Hi @mvachhar @mterrel — I think I useful (traffic generating) tutorial / walk through might be something that follows the moviedb setup. It takes about how to back a live dB and then re-instantiate the backend on a different configuration machine.
    Mark Terrel
    @mterrel
    Great idea @rksio_twitter.
    Rahul Saxena
    @rksio_twitter
    Good primer on low maintenance recipes for building canned backends. https://github.com/fpereiro/backendlore
    Manish Vachharajani
    @mvachhar
    Pretty interesting for a simple architecture.
    Where did you hear about this repo?
    Rahul Saxena
    @rksio_twitter
    It was on HN last night. It appears that the repo might be the start of an infrastructure SaaS. Wonder if the author would write some React to codify the patterns.
    BTW, Architecture B is what we had at my previous startup. Only addition was an additional Postgres connection.
    Rahul Saxena
    @rksio_twitter
    Have you seen this service: https://bullettrain.co/ — scaffolding RoR as service. I wonder what they use in the backend. — is it valuable to them to have adaptjs based backend instantiation...
    Rahul Saxena
    @rksio_twitter
    What do you all think of applying component based approach to CI systems. Look at this stuff: https://www.branchci.com/
    Manish Vachharajani
    @mvachhar
    How different is this from something like Spinnaker?
    Generally, I am not a fan of GUI-only experiences for configuring complex things. Eventually, it becomes easier to see what is happening with a text interface, perhaps with a nice visualization of things to go along with it.
    Rahul Saxena
    @rksio_twitter
    I was looking at this website as an example of a need to deploy and update well known “Applications”. — Branch CI appears to be able to update and deploy the Wordpress Application. A component and dependency based model like Adapt might be useful to deploy Applications as well as underlying infrastructure. Perhaps there are cases where App deployment is more complex than instantiation if underlying infrastructure? (mostly thinking out aloud)
    Manish Vachharajani
    @mvachhar
    Agreed, although I think a GUI approach may be best for app deployment. This isn't something we're targeting explicitly, but if some folks in the community want to build such components, we'd be all in on helping them do so.
    William Kasel
    @Wkasel

    Hey guys, thanks for the great product. I am working through converting an existing app of mine to Adapt, and had a few questions:

    1.) What version of node is currently supported?
    2.) Are you using node alpine, or what specific image?
    3.) What is the default script ran when deployed?

    Mark Terrel
    @mterrel
    Hi @Wkasel, I'm glad you're liking Adapt so far!
    The current latest version of Adapt, v0.1.0, requires that the system you run it on uses Node 10. But we've added support for Node 12 and 13 in the next version. To upgrade your Adapt CLI and any projects you've created to next, follow the instructions here
    Mark Terrel
    @mterrel
    For your second question, I'm guessing you're asking about the version of Node used when building your app?
    If so, <LocalNodeImage> is currently hard-coded to use node:10-stretch-slim. (And the NodeService and ReactApp components both use <LocalNodeImage>). However, the image should really be an option you can pass to any of those components so you can use any version you prefer.
    Mark Terrel
    @mterrel
    If you need a different version, you've got a couple of options:
    • Fastest: you can copy and paste the code for LocalNodeImage from the Adapt source into a file in your own project and modify the hard-coded image. You can then use a style sheet rule to substitute the LocalNodeImage from the cloud library to use your own local version instead. (Let me know and I can help you with the rule.)
    • I can also start working on adding the option to LocalNodeImage so you can use it. Let me know if you need this quickly and I'll get working on it.
    • Or, if you'd like to submit a PR that updates LocalNodeImage to take a prop for its image, that would be awesome.
    Mark Terrel
    @mterrel

    I'm guessing that your third question is also about LocalNodeImage. So the short answer is that it runs npm run build by default.

    But that actually is configurable. If you're using LocalNodeImage directly, you can control both which package manager to use (npm is default) and what scripts to run. Here's an example:

    <LocalNodeImage srcDir="../frontend"  options={{ packageManager: "yarn" runNpmScripts: [ "setup", "build" ] }} />
    You can check out some of these docs for more info:
    Mark Terrel
    @mterrel
    Oops, I just noticed there's a comma missing, just before runNpmScripts in the example above.
    Tarrence van As
    @tarrencev
    are there any examples of deploying an application to gcloud and serving over an https endpoint?
    Mark Terrel
    @mterrel
    Hi @tarrencev ! We have an article that describes how to use GKE here: https://adaptjs.org/blog/2020/01/10/simple-hosting-react-app-on-google-cloud
    Let me know if that's not quite what you're looking for and we can help out.
    Tarrence van As
    @tarrencev
    taking a look now, thanks!
    Mark Terrel
    @mterrel
    No problem! Let me know if you have questions or need other help.
    Tarrence van As
    @tarrencev
    Is there a way to see more verbose logging during deploy? Seems i am stuck at ⠧ Deploying Docker image 'react-app' when building locally
    Tarrence van As
    @tarrencev
    I managed to get it working
    @mterrel i want to enable https for local development. is there a way to setup nginx to support this?
    Mark Terrel
    @mterrel
    Yes, there is logging, although it's not as great as we'd eventually like it to be. Currently, we use the Node.js debug module with the prefix adapt:. To see Docker related stuff during build:
    DEBUG=adapt:cloud:docker* adapt run ...
    That's the most verbose version of docker logging. Once you see the output, you can change the DEBUG= to show more or less stuff.
    If you really want a lot of output, use DEBUG=adapt*
    There isn't an existing example of setting up Nginx with HTTPS, but there definitely should be! If you'd like to contribute an example setup, that would be awesome. Either way though, we can help you get it set up if you'd like. There are Nginx components that should be a good starting point.