Code Monkey home page Code Monkey logo

project-auth's Introduction

Project Auth

This was a Week 20 project @Technigo Frontend Bootcamp made by Julia Nikitina and Elsa Carlström. 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.

On a frontend we implemented a sign up and a sign-in form, a page to show the authenticated content from the NASA API and a 'sign out' button that removes the saved access token and redirects the user to the login form.

The problem and technologies

We have not faced any big issues, but we are proud that we managed to reach some stretch goals like improved validation for email address on a backend and displaying error messages on a frontend where it occurred (username duplicate or missing email). If we had more time we would implement a POST endpoint to add a comment on today's NASA image :)

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
  • Regex to validate that the e-mail address provided by the user follows the correct format
  • Deployed to MongoDB through Heroku

Frontend technologies:

  • React/React Routes
  • Redux (store, reducers)
  • Styled components implementation for styling
  • localStorage to enable user to stay logged in when reloading the page
  • Lottie library for animations
  • API fetch
  • React Font Awesome icons

View it live

Frontend: https://space-a-day.netlify.app/; Backend: https://julia-elsa-fullstack.herokuapp.com/

project-auth's People

Contributors

emolsz avatar dependabot[bot] avatar julianiki avatar elsisco avatar idlefingers avatar

Forkers

elsisco

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.