Coder Social home page Coder Social logo

react-ts's Introduction

React.js with TypeScript

Contents

Koa + React

  1. Start with Yarn: Javascript package manager.
    • node, npm, git
  2. Koa.js with TypeScript: Web Framework for Node.js.
    • koa, typescript, gulp
  3. React.js with TypeScript: Web Application Javascript library.
    • create-react-app
  4. koa-static: Send static files to client.
  5. koa-router: Router middleware. Connect the koa server to the react app in development environment using proxy settings.
    • server: dotenv, ts-node
    • client: axios
  6. concurrently: Development environment automation.

Lint

  1. ESLint: Linter for the Javascript/TypeScript language.
  2. Prettier: Code Formatter.

Test-driven development

  1. React test: Jest.
    • axios-mock-adapter
  2. Node test: Mocha, Chai, Supertest.

Database

  1. Database: MariaDB with Docker.
  2. Sequelize: Promise-based Node.js ORM
    • mariadb

OAuth2

  1. GitHub OAuth Apps: Register a new GitHub OAuth application.
  2. Passport: Get a GitHub user profile.
    • passport-github2, koa-passport, koa-bodyparser, koa-session
  3. Sign up: Save a user profile in the database.
  4. Sign in/out: Koa.js authentication.

React.js

Home

  1. Favicon: Web app manifests.
  2. Font: Web fonts.
  3. Home page
    • node-sass, react-bootstrap, react-router
  4. Sign in page

Login

  1. Redux: store: Setting up the redux store.
    • @reduxjs/toolkit, react-redux
  2. Redux: reducer: Creating the initial state slices.
  3. Redux: sign in/out: Fetch a user data. Store in the redux store.
  4. Web storage: Keep data in local.
    • redux-persist

Writings

  1. Write diary: Save and erase a diary to database.
    • react-helmet, react-js-pagination

Deployment

  1. AWS RDS
  2. AWS Beanstalk
  3. AWS Route 53

ECMA

  • ES2019: ES10.
  • ES2018: ES9. ...identifier
  • ES2017: ES8.
  • ES2016: ES7. await, async
  • ES2015: ES6. import, export
  • ES2009: ES5

react-ts's People

Contributors

rurumimic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-ts's Issues

Not an issue, a thank you

Hi, I wanted to thank you :

  • I am working on setting up Github authentication using passport-github2
  • Many examples are on the web for pure node JS, very few are there in Typescirpt.

I found one example in your repository, and wanted to thank you about it :)

One question though : I could ot find the source code of the Profile type, which I suppose is an interface, have I missed it ?

Oh yeah, just found it import { Profile } from 'passport-github2'

Note that you have a small issue :

  • this :
      const verify = (
        accessToken: string,
        refreshToken: string,
        profile: passport_github2.Profile, // type was Profile, but well, I don't have a Profile interface or class
        done: OAuth2Strategy.VerifyCallback
      ): void => {
        console.log('hugo-express accessToken : ', accessToken)
        console.log('hugo-express refreshToken : ', refreshToken)
        console.log('hugo-express profile : ', profile)
        return done(null, profile.id)
  • should be :
      const verify = (
        accessToken: string,
        refreshToken: string,
        profile: passport_github2.Profile, // type was Profile, but well, I don't have a Profile interface or class
        done: OAuth2Strategy.VerifyCallback
      ): void => {
        console.log('hugo-express accessToken : ', accessToken)
        console.log('hugo-express refreshToken : ', refreshToken)
        console.log('hugo-express profile : ', profile)
        // return done(null, profile.id)
        return done(null, profile)

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.