As a result, what happened is that Nx generated for us such a proxy config. Now, when we generated our Node Express API, we indicated that the store is our front-end application. If we go to actual /API/games, we get all the variety of games that are being exposed by that static file. The backend API runs on local host 323/API. Let's change that, and actually connect to our backend API. We can see here we have that still in our application. Right now, however, our application here still uses the data that comes locally from a file, which is currently residing here in that fake API. We created the API application as a Node Express application, and we can see here that we have that repository which simply contains an array of data, which then gets exposed over that API. If we open up our dependency graph, we can actually see we have that store application, and we have that API application. Res.sendFile(path.join(_dirname, 'build')) īut this doesn't seem to work as when I try to open it throws a "The site can't provide a secure connection".Instructor: In our Nx workspace, we currently have two applications. Var server = https.createServer(options, app) I'm adding the following code in my server.js Openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem Openssl req -new -key key.pem -out csr.pem I tried creating a self-signed certificate following the steps below, Great article! I would like to know how to set up HTTPS here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |