As far as production there are few gotchas namely we cannot add new content types.
All the data has been wiped out so we would need to add new products new orders as well as users.
That's the reason why I said that there is no point on adding 10000 products when your project is in
a local setup and also we would need to configure our roles and permissions from the scratch.
And lastly the file uploads also needs to be configured to using cloud injury.
Let's start one by one.
So if I would want to add a new content type no can do.
The message says this plugin is only available in development so the way it would work on the local
setup we would create a new content type and then push it up to production.
Once it's in production then we can add new data.
And like I said there is no data within any of the content that we currently have.
So let's save.
Who would want fewer products.
Just so we can test it out.
We wouldn't need to add it from scratch since I would want to speed this up.
I'm just gonna add some dummy data.
There's gonna be a product I'm going to say first.
First a random product then the price is gonna be I don't know 50 ninety nine and some random description
as well as some kind of file.
So we're gonna go to desktop stop we're gonna look for product number one and I'm gonna set this one
to featured just so we can see that functionality still works on our front end.
Let's save it.
I'm gonna add a new product and then this guy is gonna be some random product.
Number two price is gonna be an unknown one hundred ninety nine.
Some random description and then let's add a second file.
So second image is gonna be the iPhone and then I'm not going to sell this equal to on because I would
want to see that only one product is displayed on my front and since it's set to feature let's save
it however there is an issue because like I said rows and permissions haven't been configured as well.
So if we're gonna head over let's say to a product and if we get a refresh notice again we're gonna
get back the four or three.
So let's hop back to our dashboard let's look for roles and permissions and we're looking for of course
the public one as far as the products are concerned.
So let's set up public then public can find and find one.
Let's save that.
And then since we are here we might as well complete everything with a orders as well.
So in this case we're going to authenticate it and then we're looking for our order and what we would
want is our user to be able to create a new order.
We're gonna save that as well.
And now of course if I'm gonna check my URL I'm gonna have to product.
However keep in mind we have again an issue where are we using a local upload.
And once your app goes to sleep this image is not gonna be available.
So again we're gonna have to configure our cloud Neri setup.
So let's take a look at in our dashboard then we're looking for files and uploads or not.
Sorry.
And was the plugins we're looking for.
And then we're looking for file upload.
Remember this is a production right now.
So instead of local server we are using cloud energy.
And again we need to set up our API keys.
So let me copy and paste it one more time.
So it's gonna be here.
Cloud name then we have the API key then we have the API key.
And of course I'm heading over to a different tab API key.
And then last one is the secret.
So let's just copy that to a clipboard and line and let's add it within our dashboard.
Let's save it.
And then in this case we're going to have to redo it because I already added using the local setup.
So let's do product let's configure it.
And in this case I'm gonna add a new file.
So he's gonna remove this one and we're going to update it where we're gonna have a product.
So we're gonna save that one and then we're going to do this exactly the same thing for the second one.
So again we can remove the file.
You can add a new one and once we have the new file we're gonna save it.
And if we head over to our your URL and a refresh.
Now notice how the URL is pointing correctly to ordinary ordinary and with all that setup complete.
Now I'd want to grab my domain name because that is important.
Otherwise you might be thinking OK well what is the whole point of this.
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
to delete whatever I had after the admin like so.
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
gonna head over to our front end and we're going to look for you are all remember we were using all
the time the local host or we can change that around and copy and paste our actual production you are
just again.
Please keep in mind remove that forward slash so because we're using the product we're using the orders
and all that.
So all of them have the forward slash already.
So let's just change this around.
Let's save it.
And now we can test that out in the local host of 3000 and let's refresh.
And now we're going to have only one product why we have the product because now we're getting it from
our production application which is of course on the hierarchal.
So now as that stood out.
We can maybe try to log in let's say we would need to of course creating new user.
So I'm going to toggle this.
I'm going to say John at gmail dot com.
Some kind of dummy password.
ZAHN As far as the user name I'm going to go ahead.
John we're going to submit it.
We're accessing the user data.
Now we're waiting.
And then if everything goes smoothly then we should have a John Lock them and we do.
And of course can always always just head over to our admin and test it out whether everything worked.
Now we should have the user by the name of John.
And of course it is there.
Now on the front end what we would like to do.
Well I guess let's test it out more whether we can actually complete the order.
So we're going to look for the products we can add to a cart.
This is my cart economically navigate to a check out page.
We do that then we're going to add some dummy name and we're going to pass in our numbers some numbers
for the card correct month then some kind of security code and then of course some kind of old Zip code.
So there is the zip code.
Again we're going to submit submitting the order please wait your order is complete.
Awesome.
Again strappy ad man here we come where it is orders and now we have our order.
And then within the order.
Well no I wouldn't want to lead that I have of course the I.D. I have the price image and all that.
And then lastly if we really want to be nit picking then of course we can head over to a stripe then
log to our stripe account and we should see a charge for whatever the amount was it was hundred dollars
and there is my charge so successfully we deployed our application and now last thing What's left is
essentially just pushing our front end to production and we're going to use Net lo fi for the.