1 00:00:00,420 --> 00:00:05,020 As far as production there are few gotchas namely we cannot add new content types. 2 00:00:05,220 --> 00:00:11,790 All the data has been wiped out so we would need to add new products new orders as well as users. 3 00:00:11,790 --> 00:00:19,160 That's the reason why I said that there is no point on adding 10000 products when your project is in 4 00:00:19,160 --> 00:00:24,240 a local setup and also we would need to configure our roles and permissions from the scratch. 5 00:00:24,240 --> 00:00:30,520 And lastly the file uploads also needs to be configured to using cloud injury. 6 00:00:30,570 --> 00:00:31,830 Let's start one by one. 7 00:00:32,100 --> 00:00:36,180 So if I would want to add a new content type no can do. 8 00:00:36,180 --> 00:00:42,660 The message says this plugin is only available in development so the way it would work on the local 9 00:00:42,660 --> 00:00:47,700 setup we would create a new content type and then push it up to production. 10 00:00:47,700 --> 00:00:50,780 Once it's in production then we can add new data. 11 00:00:50,970 --> 00:00:56,130 And like I said there is no data within any of the content that we currently have. 12 00:00:56,130 --> 00:00:56,870 So let's save. 13 00:00:56,880 --> 00:00:58,650 Who would want fewer products. 14 00:00:58,680 --> 00:01:00,020 Just so we can test it out. 15 00:01:00,090 --> 00:01:04,170 We wouldn't need to add it from scratch since I would want to speed this up. 16 00:01:04,170 --> 00:01:05,890 I'm just gonna add some dummy data. 17 00:01:06,090 --> 00:01:08,670 There's gonna be a product I'm going to say first. 18 00:01:09,610 --> 00:01:21,980 First a random product then the price is gonna be I don't know 50 ninety nine and some random description 19 00:01:22,610 --> 00:01:24,730 as well as some kind of file. 20 00:01:24,890 --> 00:01:30,680 So we're gonna go to desktop stop we're gonna look for product number one and I'm gonna set this one 21 00:01:30,680 --> 00:01:35,330 to featured just so we can see that functionality still works on our front end. 22 00:01:35,450 --> 00:01:36,260 Let's save it. 23 00:01:36,260 --> 00:01:43,160 I'm gonna add a new product and then this guy is gonna be some random product. 24 00:01:43,160 --> 00:01:48,990 Number two price is gonna be an unknown one hundred ninety nine. 25 00:01:49,170 --> 00:01:55,960 Some random description and then let's add a second file. 26 00:01:55,960 --> 00:02:03,030 So second image is gonna be the iPhone and then I'm not going to sell this equal to on because I would 27 00:02:03,030 --> 00:02:09,320 want to see that only one product is displayed on my front and since it's set to feature let's save 28 00:02:09,330 --> 00:02:16,700 it however there is an issue because like I said rows and permissions haven't been configured as well. 29 00:02:16,770 --> 00:02:22,320 So if we're gonna head over let's say to a product and if we get a refresh notice again we're gonna 30 00:02:22,350 --> 00:02:24,390 get back the four or three. 31 00:02:24,390 --> 00:02:30,630 So let's hop back to our dashboard let's look for roles and permissions and we're looking for of course 32 00:02:30,630 --> 00:02:34,400 the public one as far as the products are concerned. 33 00:02:34,770 --> 00:02:40,190 So let's set up public then public can find and find one. 34 00:02:40,210 --> 00:02:41,470 Let's save that. 35 00:02:41,550 --> 00:02:47,060 And then since we are here we might as well complete everything with a orders as well. 36 00:02:47,070 --> 00:02:53,160 So in this case we're going to authenticate it and then we're looking for our order and what we would 37 00:02:53,160 --> 00:02:58,000 want is our user to be able to create a new order. 38 00:02:58,110 --> 00:02:59,920 We're gonna save that as well. 39 00:02:59,940 --> 00:03:04,860 And now of course if I'm gonna check my URL I'm gonna have to product. 40 00:03:04,860 --> 00:03:10,810 However keep in mind we have again an issue where are we using a local upload. 41 00:03:10,980 --> 00:03:16,080 And once your app goes to sleep this image is not gonna be available. 42 00:03:16,080 --> 00:03:19,950 So again we're gonna have to configure our cloud Neri setup. 43 00:03:19,950 --> 00:03:26,350 So let's take a look at in our dashboard then we're looking for files and uploads or not. 44 00:03:26,360 --> 00:03:26,860 Sorry. 45 00:03:26,920 --> 00:03:29,360 And was the plugins we're looking for. 46 00:03:29,730 --> 00:03:32,520 And then we're looking for file upload. 47 00:03:32,520 --> 00:03:34,410 Remember this is a production right now. 48 00:03:34,410 --> 00:03:37,620 So instead of local server we are using cloud energy. 49 00:03:37,620 --> 00:03:40,860 And again we need to set up our API keys. 50 00:03:40,980 --> 00:03:44,130 So let me copy and paste it one more time. 51 00:03:44,130 --> 00:03:46,140 So it's gonna be here. 52 00:03:46,140 --> 00:03:53,050 Cloud name then we have the API key then we have the API key. 53 00:03:53,230 --> 00:03:56,970 And of course I'm heading over to a different tab API key. 54 00:03:57,310 --> 00:03:58,630 And then last one is the secret. 55 00:03:58,630 --> 00:04:05,190 So let's just copy that to a clipboard and line and let's add it within our dashboard. 56 00:04:05,590 --> 00:04:06,610 Let's save it. 57 00:04:06,610 --> 00:04:12,780 And then in this case we're going to have to redo it because I already added using the local setup. 58 00:04:12,790 --> 00:04:16,910 So let's do product let's configure it. 59 00:04:16,910 --> 00:04:18,920 And in this case I'm gonna add a new file. 60 00:04:18,920 --> 00:04:25,450 So he's gonna remove this one and we're going to update it where we're gonna have a product. 61 00:04:25,490 --> 00:04:31,360 So we're gonna save that one and then we're going to do this exactly the same thing for the second one. 62 00:04:31,370 --> 00:04:33,770 So again we can remove the file. 63 00:04:33,900 --> 00:04:38,450 You can add a new one and once we have the new file we're gonna save it. 64 00:04:38,550 --> 00:04:42,210 And if we head over to our your URL and a refresh. 65 00:04:42,210 --> 00:04:49,290 Now notice how the URL is pointing correctly to ordinary ordinary and with all that setup complete. 66 00:04:49,500 --> 00:04:53,760 Now I'd want to grab my domain name because that is important. 67 00:04:53,760 --> 00:04:56,940 Otherwise you might be thinking OK well what is the whole point of this. 68 00:04:57,090 --> 00:05:03,720 If I cannot see this on the front then so let's copy and paste our you URL and then this case I'm going 69 00:05:03,720 --> 00:05:07,570 to delete whatever I had after the admin like so. 70 00:05:07,590 --> 00:05:15,810 So I'm going to have my homepage and we're gonna copy the URL and once we have copied the URL then we're 71 00:05:15,810 --> 00:05:21,840 gonna head over to our front end and we're going to look for you are all remember we were using all 72 00:05:21,840 --> 00:05:29,030 the time the local host or we can change that around and copy and paste our actual production you are 73 00:05:29,100 --> 00:05:29,730 just again. 74 00:05:29,730 --> 00:05:36,960 Please keep in mind remove that forward slash so because we're using the product we're using the orders 75 00:05:36,960 --> 00:05:37,470 and all that. 76 00:05:37,470 --> 00:05:40,370 So all of them have the forward slash already. 77 00:05:40,410 --> 00:05:41,880 So let's just change this around. 78 00:05:42,270 --> 00:05:43,210 Let's save it. 79 00:05:43,320 --> 00:05:48,950 And now we can test that out in the local host of 3000 and let's refresh. 80 00:05:49,020 --> 00:05:54,120 And now we're going to have only one product why we have the product because now we're getting it from 81 00:05:54,180 --> 00:05:58,210 our production application which is of course on the hierarchal. 82 00:05:58,260 --> 00:05:59,880 So now as that stood out. 83 00:05:59,880 --> 00:06:04,950 We can maybe try to log in let's say we would need to of course creating new user. 84 00:06:04,950 --> 00:06:06,690 So I'm going to toggle this. 85 00:06:06,690 --> 00:06:10,740 I'm going to say John at gmail dot com. 86 00:06:10,890 --> 00:06:13,080 Some kind of dummy password. 87 00:06:13,170 --> 00:06:16,230 ZAHN As far as the user name I'm going to go ahead. 88 00:06:16,350 --> 00:06:17,790 John we're going to submit it. 89 00:06:17,790 --> 00:06:19,800 We're accessing the user data. 90 00:06:19,800 --> 00:06:21,030 Now we're waiting. 91 00:06:21,120 --> 00:06:26,840 And then if everything goes smoothly then we should have a John Lock them and we do. 92 00:06:26,910 --> 00:06:33,070 And of course can always always just head over to our admin and test it out whether everything worked. 93 00:06:33,070 --> 00:06:35,520 Now we should have the user by the name of John. 94 00:06:35,650 --> 00:06:37,950 And of course it is there. 95 00:06:38,130 --> 00:06:41,400 Now on the front end what we would like to do. 96 00:06:41,430 --> 00:06:46,260 Well I guess let's test it out more whether we can actually complete the order. 97 00:06:46,290 --> 00:06:50,390 So we're going to look for the products we can add to a cart. 98 00:06:50,610 --> 00:06:53,940 This is my cart economically navigate to a check out page. 99 00:06:53,970 --> 00:07:00,630 We do that then we're going to add some dummy name and we're going to pass in our numbers some numbers 100 00:07:00,630 --> 00:07:07,380 for the card correct month then some kind of security code and then of course some kind of old Zip code. 101 00:07:08,100 --> 00:07:09,360 So there is the zip code. 102 00:07:09,360 --> 00:07:14,860 Again we're going to submit submitting the order please wait your order is complete. 103 00:07:14,910 --> 00:07:15,580 Awesome. 104 00:07:15,750 --> 00:07:22,310 Again strappy ad man here we come where it is orders and now we have our order. 105 00:07:22,500 --> 00:07:23,580 And then within the order. 106 00:07:23,580 --> 00:07:29,740 Well no I wouldn't want to lead that I have of course the I.D. I have the price image and all that. 107 00:07:29,760 --> 00:07:37,590 And then lastly if we really want to be nit picking then of course we can head over to a stripe then 108 00:07:37,590 --> 00:07:44,610 log to our stripe account and we should see a charge for whatever the amount was it was hundred dollars 109 00:07:44,700 --> 00:07:52,050 and there is my charge so successfully we deployed our application and now last thing What's left is 110 00:07:52,050 --> 00:07:58,220 essentially just pushing our front end to production and we're going to use Net lo fi for the.