Conclusion on Event Guard
Let's conclude what we’ve learned so far and upload our updated application to GitHub.
We'll cover the following
What have we done so far?
In this chapter:
- We added the last piece of functionality to our application. This restricts our event update page to event creators by creating our second route guard,
EventGuard
.
Let’s finish by committing our latest changes and pushing them to GitHub.
Note: Git may ask you to set your account’s identity before committing changes to GitHub. For this, use the following commands to set your email address and username.
git config --global user.email "you@example.com" git config --global user.name "Your Name"
Below are the commands to push changes to the GitHub repository.
git init
git remote add origin https://github.com/your-username-here/lets-get-lunch-fe.git
git add .
git commit -m "Add event guard"
git push origin master
Run the code below and execute the commands in the lets-get-lunch
directory.
Get hands-on with 1400+ tech skills courses.