4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills
Difficulty
beginnerRepository
Click to openVideo
Not available
Live demo
Not available
Average duration
3 hrs
Technologies
Almost every website in the world has user authentication, in this project you have to implement user authentication using the Python Flask framework for building a backend REST API and React.js and sessionStorage API for the front end web application.
Implement an authentication system with the following parts:
At least the following pages and react components must be implemented into the project:
Path | Component | Functionality |
---|---|---|
/signup | <Signup> | Renders the signup form |
/login | <Login> | Renders the login form |
/private | <Private> | Validates that only authenticated users and render this component |
Do not clone this repository because we are going to be using a different template.
We recommend opening the React.js + Flask API boilerplate
using a provisioning tool like Codespaces (recommended) or Gitpod. Alternatively, you can clone it on your local computer using the git clone
command.
This is the repository you need to open or clone:
https://github.com/4GeeksAcademy/react-flask-hello
๐ Please follow these steps on how to start a coding project.
๐ก Important: Remember to save and upload your code to GitHub by creating a new repository, updating the remote (git remote set-url origin <your new url>
), and uploading the code to your new repository using the add
, commit
and push
commands from the git terminal.
Usually an authentication system is implemented in 4 parts:
At the beginning of every application that is not users or tokens, so the first step that makes sense to build is user signup.
/signup
path./signup
and match it with its corresponding React.js page component that will take care of rendering the signup HTML.POST /token
request with the email and password on the body payload.This part of the process occurs only when new tokens have to be generated.
/login
path and match it with its corresponding React.js page component, this page will take care of rendering the login form.token
object./private
.This process occurs when the user desires to logout.
Any user can just type /private
to attempt visiting a private page, that is why we need to implement a validation that prevents anonymous users to see the content of this page, and we must redirect the user to /login
or any other public page. This is usually how the process goes:
/private
and match it with its corresponding React.js page component that will take care of rendering the HTML./private
view component is loaded.This and many other projects are built by students as part of the 4Geeks Academy Coding Bootcamp by Alejandro Sanchez and many other contributors. Find out more about our Full Stack Developer Course, and Data Science Bootcamp.
4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills
Difficulty
beginnerRepository
Click to openVideo
Not available
Live demo
Not available
Average duration
3 hrs
Technologies