Now let's go ahead and let's go through our comments to see what we have to resolve. So I'm going to go ahead and search for to do. So let's see exactly all the things we have inside of here. So I'm primarily interested in this one. So I found out that you can safely invalidate transactions and it doesn't matter what the additional keys are.
So yeah, we can leave this as it is. Let's go ahead inside of here and let's add the invalidation of the summary because we now have that. So summary and we can remove the comment. Or the delete transaction as well. Let's add the summary.
Let's see what else creates transaction. Definitely. Let's add the summary. So basically we want to refresh the dashboard, right? And of course for bulk delete.
Let's see where else. So edit category also needs to refresh the summary because we have the category pie. And use get summary, this is fine. Use bulk create transactions, so definitely also needs the summary. And use delete category also needs the summary.
Let's see what else, use bulk delete categories, same thing. We need to invalidate our new summary. Edit account, I don't know if that needs the summary as well, so I'm not going to do it here because I don't exactly see how this would but you know what let's go ahead and add just in case let's add the summary in validation here as well and use delete account same thing yeah actually it doesn't make sense because if we delete the account also the transactions will get deleted. Great, so I think we resolved all of the to-dos in our hooks here. Great, so you can go ahead and play along with the rest of the stuff here.
And if you find any bugs, you can try and resolve them yourself. Great, great job. Now let's go ahead and let's deploy this to Vercel to see if we have anything missing or anything that won't work. So I'm gonna go inside of the terminal here and I'm gonna go ahead and do the following. So I'm gonna do git add, git commit and I'm gonna go ahead and do the following.
So I'm gonna do git add, git commit, and I'm gonna go ahead and write any message here. So for example, deployment. And now what I'm going to do is I'm going to create a new repository. So for example, I'm going to call this finance tutorial. And let's go ahead and create this repository.
So since this is an existing repository, we copied the second snippet here. So let's go ahead and push that here. There we go. And what I want to do now is first of all, refresh this page right here to confirm that everything is inside. Great.
And then what I want to do is the following. I want to go inside of my package.json and I want to build, I want to run the build command. So bun run build. The reason I want to do that is so I see if there are any type errors inside of our project. If there are, we won't be able to deploy the Vercel because it's going to break the build.
So let's see if this will succeed or not. I'm gonna go ahead and pause. And looks like everything is just fine. If you have any errors go ahead and resolve that first. Great, so now that we have that, what we are going to do is we're going to prepare our .environment.local file right here and we're gonna go inside of Vercel.
Let's go ahead and select our new repository right here. And let's go ahead and add the environment variables. So you can just copy and paste everything inside of here and paste it like this. There we go. And go ahead and click deploy.
And We're gonna have to change the next public app URL. But we're gonna do that after we deploy. We can only do it after we deploy because we don't know what Vercel is going to assign our domain name to. So I'm gonna pause the screen and wait for the result of the deployment. And there we go.
Looks like this is deployed. So now I'm going to go ahead and click continue to dashboard here because I need to get my domain name. So finance-tutorial.versell.app And now we have to go back inside of the settings, environment variables, and we have to find the next public app URL and we have to edit it. Like this. But let's just keep the HTTP, but in our case it's gonna be HTTPS, like this.
And don't add the backslash. So HTTPS finance-tutorial-versell. And let's go ahead and save this and now that you've saved an environment variable you have to go inside of the deployment select the last one and click redeploy and confirm one more time. I'm going to pause the screen again and tell you the results. And there we go.
Our app is deployed and it's fully functional. Great, great job!