0

I finished my Udacity Cloud Developer nanodegree and I want to make a custom domain to showcase on my portfolio.

The stack I use includes: Api Gateway, Lambda, DynamoDB, Nodejs, S3 and Serverless framework. Frontend is : React.

However, Im stuck on comprehending how to deploy the full app, with React frontend?

Something like: anc.com would navigate to my app. I found many solutions mentioning about using serverless-domain-manager.

But what about my React front end? I read some solutions saying to deploy static web using S3.

But my app currently has S3 to store the uploaded images.

If I deploy my frontend with S3, do I have to make 2 S3 buckets?

Currently, I have to use 2 terminals, SLS deploy for backend, and npm run start to run the front end at localhost.

My github code: https://github.com/ploratran/DogLookBook

4

1 回答 1

0

Serverless 团队还发布了一个名为 components 的工具,其中一个看起来非常适合您想做的事情;它会自动处理云上的所有内容以托管您的 React 文件并分配一个域:https ://github.com/serverless-components/website

于 2021-01-23T10:27:14.537 回答