Coder Social home page Coder Social logo

dowhilefrontend's Introduction

NLW7 - Front-End

This is a solution to the front end application created by rocketseat for NLW7. This challenge help you improve your coding skills by building realistic application.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the page
  • View real time messages
  • How to use github login
  • How to use vite with react;

Screenshot

Screenshot

Links

My process

To create this application i used vite.js with react, socket.io and oauth from github. For development the application i had to know more about use the oauth from github, know more about context in react, and know how to connect with socket.io backend.

Built with

  • ReactJS
  • ViteJS
  • Typescript
  • Socket.io
  • SASS

What I learned

In this project i was learn how to use vite.js with typescript, context api ReactJS, how to login in the application with github oauth, and connect with backend created in socket.io

async function singIn(githubCode: string) {
  const response =
    (await api.post) <
    AuthResponse >
    ("/authenticate",
    {
      code: githubCode,
    });

  const { token, user } = response.data;
  localStorage.setItem("@dowhile:token", token);
  api.defaults.headers.common.authorization = `Bearer ${token}`;
  setUser(user);
}

Useful resources

  • ViteJS - This helped me for understand why use vitejs.

  • Socket.io - This helped me for understand how socket works.

  • Github Oauth - This helped me for understand how to connect my application with github.

Author

dowhilefrontend's People

Contributors

gugavillar avatar

Watchers

James Cloos avatar  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.