Chitter is a social networking app, which allows registered, signed in users to post messages (‘peeps’). Peeps can be viewed by anyone.
This is a social networking app. As a user, you can create new peeps, view everyone’s peeps, as well as sign up, sign in and logout. Only logged in users can create new peeps. When not logged in, the Sign Up, Login and Peeps buttons are visible. While logged in, only the Peep and Sign Out buttons are visible to the user.
A user can:
Sign up
Sign in
Create a new peep
Sign out
View a list of peeps
This application is comprised of two distinct pieces.
The React front end sends HTTP requests to the backend API and receives JSON in the response body, rather than a whole page of HTML.
Here’s the authentication flow for this application:
"/newPeep"
must include a valid token (which is checked by the backend).