Coder Social home page Coder Social logo

project-auth's Introduction

Project Auth

For this project we were to create a database/API with authentication and paths for authorized users only, as well as a frontend that demonstrates the backend functionality.

The problem

We began by creating the backend user model, as well as the paths for signup and log in. Moving forward we implemented the encryption and changing the model into a schema, allowing us to control/validate the user input and then encrypt the password.

Heading onto creating the frontend we decided to start by making sure authentication functionality was working properly, and then adding some conditional rendering to control what elements we wanted to show on the webpage at what time. By using both component local states as well as Redux states we could set up an intuitive signup/login form. We added isLoggedIn to our initial state to do some more conditional rendering in each component.

We used a single thunk function in our reducer to send both login- and signup requests, but separating the outcome by using props and conditionally separate the use of the returned json.

If we would have had more time, we'd dig deeper into the opportunities of adding features for the authorized user as well as creating a more extensive frontend.

View it live

Live demo:

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.