Hi! I’m running a Slack App using NodeJS, @Slack/B...
# help
a
Hi! I’m running a Slack App using NodeJS, @Slack/Bolt, Serverless Stack, AWS-Lambda (like this: https://slack.dev/bolt-js/deployments/aws-lambda). I also need to build a website and want to use a pipeline ive used before, NodeJS, ReactJS, Gitlab CI > AWS-Amplify DynamoDB. The Website is where the “Add to Slack” button will live and (Slack/oAuth)some of the onboarding for Slack will happen so i want to capture data from the users, save it in DynamoDB then use it in the other Slack App i build. The question: whats the best architecture for this: Add the website code into the Slack/Bolt>Serverless>AWS-Lambda project or the other way around? Can i deploy the reactjs code along with the AWS-Lambda project through serverless? Many thanks for your guidance!
j
I'm not too familiar with the Slack stuff here but if your React app is just a SPA that talks to the serverless API, then it's better to deploy it as a static site. There are a few options for this, Amplify, Netlify, Vercel, etc. Or to an S3 bucket. There are some Serverless Framework or CDK options that can help there.
a
Thanks, Jay, ill look into that - so keep them separate
j
Yeah, though I don't have any experience with building Slack apps!