GithubHelp home page GithubHelp logo

coderhouse-mern's Introduction

coderhouse-mern

VS Code extensions

REST Client

crypto.randomBytes(64).toString('hex') used to generate values of, JWT_ACCESS_TOKEN_SECRET JWT_REFRESH_TOKEN_SECRET

Verify otp method also sets the cookie with the refresh token.

verify otp result

Access token = JWT, store it in local storage and login the user.

Opt feature was effectively stored on the client, reducing db load.

User Redux tool kit for state management

Enable CORS middleware in BE to prevent the error by whitelisting the domain, Also can use proxy option in front end.

data transform object (dto) - to tranform data before we send

cd into frontend yarn start

cd into backend node server.js or yarn dev

Part - 5 :

  • Full name, profile pic upload,
  • request server, to activate user,
  • once the current JWT expires, using refresh token we need to auto refresh it with axios.(this was done in part 6)

Notes for self :

  1. To add the refresh token to db, we need a model. create a service to handle errors later on.
  2. Check part 5 video 14:25 seconds to clarify about 'expires' variable.

The HttpOnly attribute is used to help mitigate against certain types of cross-site scripting (XSS) attacks by preventing client-side scripts from accessing the cookie. When the HttpOnly attribute is set on a cookie, it is not accessible to client-side scripts, such as JavaScript. This can help to reduce the risk of certain types of XSS attacks by preventing an attacker from being able to steal the cookie by injecting malicious script into the page.

Part - 6 :

  • After page refresh, automatically user login.
  • If Accesstoken is expired, how to use Refresh token and refresh Accesstoken
  • Add progress bar, after clicking activate next - replace 1 second delay with animation

https://jakearchibald.github.io/svgomg/ was used to reduce the size of the original svg for the custom loader.

Part - 7/8 :

  • fix some errors/issues.
  • create modal for creating a new room. Store it in db
  • retrieve all opened rooms to display to the dashboard.

Part - 9 :

  • explanation about event listeners in web socket, ice candiate, p2p basic.

Part - 10 :

  • create an audio element for every connected client
  • websocket p2p connection
  • create modal for creating a new room. Store it in db

Part - 11 :

  • implementing webRTC connections

Notes for self :

  1. Custom hooks @ 9 min

Future Work

  • show user an alert to the end user. Why is the request not working. (for eg - all fields are required)
  • actions.js is repeated in both fe and be folder

coderhouse-mern's People

Contributors

mushtaq96 avatar

Watchers

James Cloos avatar  avatar

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.