English 中文(简体)
将域名指向反应器,附后
原标题:Pointing domain name to a reactjs app with a nodejs backend

我正试图在w子上进行组合建设。 我在前端使用反应堆,在后端使用斜杆(nodejs)和其他各种技术,如心脏病和APIC。 我的问题是,我如何获得反应内容,每当有人用我的域名获得服务? 它是通过伊斯兰堡吗? 难道我需要一个ec子吗? 我对此感到困惑,如果有人能够帮助我,我会真心赞赏。 感谢!

最佳回答

There are many approaches you could use to set this up, it depends on what type or architecture you are looking for. I prefer to use AWS lambda functions attached to the API gateway for backend How To Build Your First Serverless API with AWS Lambda and API Gateway, and for frontend host the react.js app in s3 through cloudfront. This setup means that your entire application is serverless and you will be hard pressed to make it out of the free tier on AWS. Here is a great blog article detailing how to set this up Deploying create-react-app to S3 and CloudFront

问题回答

因此,你前线的结束在哪里?

可能有许多地点:

  • EC2 instance
  • Elastic Beanstalk (either as a Node app, or as a Docker container)
  • ECS/EKS (with or without Fargate)
  • As a series of Lambdas (running behind an ALB)

在不了解你们的申请和经历的情况下,它很难确切地告诉你应该接纳它的地方。 然而,一旦你决定你使用哪一位你,你就可以通过编辑你主机的A记录/CNAME,将其目标A记录/CNAME放在你的域名上。





相关问题
Mount windows shared drive to MWAA in bootscript

In MWAA startup script sudo yum install samba-client cifs-utils -y sudo mount.cifs //dev/test/drop /mnt/dev/test-o username=testuser,password= pwd ,domain=XX Executing above commonds giving error - ...

How to get Amazon Seller Central orders programmatically?

We have been manually been keying Amazon orders into our system and would like to automate it. However, I can t seem to figure out how to go about it. Their documentation is barely there. There is: ...

Using a CDN like Amazon S3 to control access to media

I want to use Amazon S3/CloudFront to store flash files. These files must be private as they will be accessed by members. This will be done by storing each file with a link to Amazon using a mysql ...

unable to connect to database on AWS

actually I have my website build with Joomla hosted on hostmonster but all Joomla website need a database support to run this database is on AWS configuration files need to be updated for that I ...

Using EC2 Load Balancing with Existing Wordpress Blog

I currently have a virtual dedicated server through Media Temple that I use to run several high traffic Wordpress blogs. Both tend to receive sudden StumbleUpon traffic surges that (I m assuming) ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

热门标签