GithubHelp home page GithubHelp logo

annahasselstrom / project-auth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from technigo/project-auth

0.0 0.0 1.0 928 KB

Pair-programming. Authentication and sign-in/login form. The authentication is handled both in the frontend and in the backend. The flow: when a user signs up/log in in the registration form a POST req is sent to the API, storing the a access token using local storage, and then making other requests to the API with it.🕵️

JavaScript 88.24% HTML 2.77% CSS 8.99%
api client-server mongodb mongoose react

project-auth's Introduction

Project Auth 🕵️

This project is about authentication in a sign in form. A user can sign up and log in and then get access to their “secret info”. The authentication is handled both in the frontend and in the backend. Both the backend and the frontend is built in the project. The flow: when a user signs up/log in in the registration form a POST req is sent to the API, storing the a access token using local storage, and then making other requests to the API with it.

View it live 👀

Deployed frontend: https://upbeat-edison-ad175c.netlify.app/ Deployed API: https://project-signup.herokuapp.com/

Techniques used 🛠

  • Node.js
  • Express
  • MongoDb for the backend
  • React and Redux for the frontend.
  • Postman
  • Mongo compass

The project has been done by pair programming using live share in VSCode.

General Requirements for the API 🌟

  • Registration endpoint, to create a new user.
  • Sign-in endpoint, to authenticate a returning user.
  • An authenticated endpoint which only returns content if the Auhourization header with the user’s token was correct.
  • General Requirements for the frontend
  • A registration form.
  • A sign-in form.
  • A page to show the authenticated content from the API.
  • A ‘sign out’ button that removes the saved access token and redirects the user to the login form.

project-auth's People

Contributors

annahasselstrom avatar dependabot[bot] avatar emolsz avatar idlefingers avatar

Forkers

clairecaudwell

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.