The assignment was to create a fullstack project connecting a backend API and a React frontend.
On a backend we needed to create three endpoints: a registration endpoint (to create a new user), a sign-in endpoint, to authenticate a returning user and an authenticated endpoint which only shows the content if the Authorization header with the user's token was correct.
Backend technologies:
- Mongoose to create a User's schema and a model based on the schema.
- Bcrypt method for salt to safely hash and store passwords.
- Async/await was used for promises.
- Deployed to MongoDB through Google Cloud.
Frontend technologies:
- React/React Routes
- Redux (store, reducers)
- localStorage to enable user to stay logged in when reloading the page
- API fetch
- Backend: https://project-auth-w5otwao4va-lz.a.run.app/
- Frontend: https://authentication-naghmeh-antonella.netlify.app/login
Authentication page made by Naghmeh Okhovat and Antonella Cardozo.