From the course: React: Creating and Hosting a Full-Stack Site

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Preparing an app for release

Preparing an app for release

- [Instructor] So at this point we have a full stack application with user auth added. So let's actually build this thing and release it to Google Cloud. Now, there are a few things that we're going to need to do here in order to prepare our app for release. So let's just take a look at what that is. The first thing we're going to need to do is we're going to need to make our backend, our Express server, actually serve the files for our front end. In other words, we're going to kind of take our front end, build it, and then add those files to our server. That might sound a little bit confusing, so let me just show you what this is going to look like. First of all, let's stop our front end application. We're going to stop our backend application, and we are going to leave Mongo running in the background. But now if we go into our front end, what you're going to want to do is run npm run build inside of there. And what that does is it takes our React application's files, which are…

Contents