Wednesday, 20 May 2020

Node + Beanstalk + Github + Codepipeline for monorepo

I have a simple monorepo on github.So, one repo and in the top level of that repo are two folders: frontend and backend. Frontend holds a simple CRA. Backend is a simple node express app (apollo-server to be exact).I have netlify hooked up to my github and that builds whenever I push to master. That is setup to run a build on the "frontend" folder. Works great.Now, I'm looking to figure out how to get the backend auto-deploying on something like elastic beanstalk.At this point, I'm not going to run any tests before deploying... just want to go from github master to elastic beanstalk.Seems like setting up codepipline is simple BUT not sure where I can handle this step where i need "npm build/npm start" to run one folder down (./backend).Is this something that would happen in the build stage with CodeBuild? or somewhere else?I had previously setup on heroku and everything was working great... but I have to look into moving to google or aws for HIPAA reasons.​Some resources I'm findinghttps://sudolabs.io/blog/build-and-deploy-static-website-and-node-js-applications-using-CI-CD-pipline-at-aws

Submitted May 20, 2020 at 01:56PM by foundry41

No comments:

Post a Comment