{"id":32867,"date":"2024-11-01T09:12:05","date_gmt":"2024-11-01T09:12:05","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=32867"},"modified":"2024-11-01T11:21:41","modified_gmt":"2024-11-01T11:21:41","slug":"deploying-a-react-app","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/32867\/","title":{"rendered":"Deploying a React App"},"content":{"rendered":"<p><body><\/p>\n<header>\n<p>This is a course that provides detailed information on how to deploy a React app.<\/p>\n<\/header>\n<nav>\n<ul>\n<li><a href=\"#introduction\">1. Introduction<\/a><\/li>\n<li><a href=\"#preparation\">2. Preparing for Deployment<\/a><\/li>\n<li><a href=\"#build\">3. Creating a Production Build<\/a><\/li>\n<li><a href=\"#deployment-options\">4. Deployment Options<\/a><\/li>\n<li><a href=\"#vercel\">5. Deploying with Vercel<\/a><\/li>\n<li><a href=\"#netlify\">6. Deploying with Netlify<\/a><\/li>\n<li><a href=\"#aws\">7. Deploying to AWS S3<\/a><\/li>\n<li><a href=\"#issues\">8. Troubleshooting and FAQ<\/a><\/li>\n<li><a href=\"#conclusion\">9. Conclusion<\/a><\/li>\n<\/ul>\n<\/nav>\n<section id=\"introduction\">\n<h2>1. Introduction<\/h2>\n<p>\n            React is a JavaScript library that helps to easily build and manage UI components.<br \/>\n            To provide the developed React app to users, deployment is necessary. Deployment refers to the process of uploading the application to a server and making it accessible to users. In this course, we will learn about various methods to deploy a React app.\n        <\/p>\n<\/section>\n<section id=\"preparation\">\n<h2>2. Preparing for Deployment<\/h2>\n<p>\n            Before deploying a React app, the following preparations are needed.\n        <\/p>\n<ol>\n<li><strong>Code Cleanup and Testing:<\/strong> Before deployment, unnecessary parts of the code should be cleaned up, and functionality tests should be conducted.<\/li>\n<li><strong>Environment Configuration:<\/strong> Understand the differences between development and production environments, and set up the .env file as needed.<\/li>\n<\/ol>\n<\/section>\n<section id=\"build\">\n<h2>3. Creating a Production Build<\/h2>\n<p>\n            To deploy a React app, a production build must be created. You can create a build using the following command.\n        <\/p>\n<pre><code>npm run build<\/code><\/pre>\n<p>\n            Executing this command will generate optimized files in the <code>build<\/code> folder. These files are the ones that will be deployed to the web server.\n        <\/p>\n<\/section>\n<section id=\"deployment-options\">\n<h2>4. Deployment Options<\/h2>\n<p>\n            There are several platforms available for deploying React apps. Here, we will introduce the most commonly used deployment options.\n        <\/p>\n<ul>\n<li>Vercel<\/li>\n<li>Netlify<\/li>\n<li>AWS S3<\/li>\n<li>GitHub Pages<\/li>\n<li>Heroku<\/li>\n<\/ul>\n<\/section>\n<section id=\"vercel\">\n<h2>5. Deploying with Vercel<\/h2>\n<p>\n            Vercel is a platform that allows for easy deployment of static sites and JAMstack applications. The process for deploying a React app with Vercel is as follows.\n        <\/p>\n<ol>\n<li>Create a Vercel account<\/li>\n<li>Connect the project: Link your GitHub, GitLab, or Bitbucket account.<\/li>\n<li>Select the project and deploy: Choose the desired React project and click deploy.<\/li>\n<\/ol>\n<p>Vercel automatically creates and optimizes the build for deployment.<\/p>\n<\/section>\n<section id=\"netlify\">\n<h2>6. Deploying with Netlify<\/h2>\n<p>\n            Netlify is also a platform that makes it easy to deploy React apps. The deployment process is as follows.\n        <\/p>\n<ol>\n<li>Create a Netlify account<\/li>\n<li>Connect to your GitHub repository<\/li>\n<li>Deployment settings: Configure the build commands and outputs.<\/li>\n<li>Deploy: Click the &#8216;Deploy site&#8217; button to deploy.<\/li>\n<\/ol>\n<\/section>\n<section id=\"aws\">\n<h2>7. Deploying to AWS S3<\/h2>\n<p>\n            AWS S3 is a service for file storage, capable of hosting the static files of a React app. The process of deploying to S3 is as follows.\n        <\/p>\n<ol>\n<li>Create an AWS account.<\/li>\n<li>Create an S3 bucket: Define a name for the bucket and perform the deployment settings.<\/li>\n<li>Upload React build files: Upload the content of the generated <code>build<\/code> folder to S3.<\/li>\n<li>CORS settings and static website hosting: Activate CORS settings and static website hosting options.<\/li>\n<\/ol>\n<\/section>\n<section id=\"issues\">\n<h2>8. Troubleshooting and FAQ<\/h2>\n<p>\n            Here, we summarize common issues that may arise during deployment and their solutions.\n        <\/p>\n<ul>\n<li><strong>404 Error:<\/strong> Check React routing settings.<\/li>\n<li><strong>HTTPS Error:<\/strong> Verify the SSL certificate.<\/li>\n<li><strong>API Call Failure:<\/strong> Check CORS policy.<\/li>\n<\/ul>\n<\/section>\n<section id=\"conclusion\">\n<h2>9. Conclusion<\/h2>\n<p>\n            Deploying a React app can be somewhat complex, but using various platforms can make it much easier. We hope this course helps you successfully deploy your React apps.\n        <\/p>\n<\/section>\n<footer>\n<p>Thank you for visiting the blog. Stay tuned for more React courses!<\/p>\n<\/footer>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a course that provides detailed information on how to deploy a React app. 1. Introduction 2. Preparing for Deployment 3. Creating a Production Build 4. Deployment Options 5. Deploying with Vercel 6. Deploying with Netlify 7. Deploying to AWS S3 8. Troubleshooting and FAQ 9. Conclusion 1. Introduction React is a JavaScript library &hellip; <a href=\"https:\/\/atmokpo.com\/w\/32867\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Deploying a React App&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[123],"tags":[],"class_list":["post-32867","post","type-post","status-publish","format-standard","hentry","category-react-basics-course"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Deploying a React App - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/32867\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deploying a React App - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"This is a course that provides detailed information on how to deploy a React app. 1. Introduction 2. Preparing for Deployment 3. Creating a Production Build 4. Deployment Options 5. Deploying with Vercel 6. Deploying with Netlify 7. Deploying to AWS S3 8. Troubleshooting and FAQ 9. Conclusion 1. Introduction React is a JavaScript library &hellip; \ub354 \ubcf4\uae30 &quot;Deploying a React App&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/32867\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T09:12:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-01T11:21:41+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/32867\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/32867\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Deploying a React App\",\"datePublished\":\"2024-11-01T09:12:05+00:00\",\"dateModified\":\"2024-11-01T11:21:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/32867\/\"},\"wordCount\":492,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"React basics course\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/32867\/\",\"url\":\"https:\/\/atmokpo.com\/w\/32867\/\",\"name\":\"Deploying a React App - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T09:12:05+00:00\",\"dateModified\":\"2024-11-01T11:21:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/32867\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/32867\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/32867\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deploying a React App\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Deploying a React App - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/32867\/","og_locale":"ko_KR","og_type":"article","og_title":"Deploying a React App - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"This is a course that provides detailed information on how to deploy a React app. 1. Introduction 2. Preparing for Deployment 3. Creating a Production Build 4. Deployment Options 5. Deploying with Vercel 6. Deploying with Netlify 7. Deploying to AWS S3 8. Troubleshooting and FAQ 9. Conclusion 1. Introduction React is a JavaScript library &hellip; \ub354 \ubcf4\uae30 \"Deploying a React App\"","og_url":"https:\/\/atmokpo.com\/w\/32867\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T09:12:05+00:00","article_modified_time":"2024-11-01T11:21:41+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/32867\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/32867\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Deploying a React App","datePublished":"2024-11-01T09:12:05+00:00","dateModified":"2024-11-01T11:21:41+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/32867\/"},"wordCount":492,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["React basics course"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/32867\/","url":"https:\/\/atmokpo.com\/w\/32867\/","name":"Deploying a React App - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T09:12:05+00:00","dateModified":"2024-11-01T11:21:41+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/32867\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/32867\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/32867\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Deploying a React App"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/32867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=32867"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/32867\/revisions"}],"predecessor-version":[{"id":32868,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/32867\/revisions\/32868"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=32867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=32867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=32867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}