Conclusion on Event Subscribe/Unsubscribe

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 another feature module to our event view page that displays a list of the event’s members.
  • We used our new service methods within EventsService to conditionally display the “Subscribe” and “Unsubscribe” buttons to users in the event view page. This allows users to subscribe to and unsubscribe from events.

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 the 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 subscribe"
git push origin master

Run the code below and execute the commands in the lets-get-lunch directory.

Get hands-on with 1200+ tech skills courses.