Coder Social home page Coder Social logo

ols2's Introduction

This is a React App and a Koa RESTful API.

how to setup

  1. git clone
  2. yarn
  3. npm run server
  4. open another cmd terminal and npm start

React app


React - Redux - Socket.io-client/XHR

React is the SPA view framework

  • SPAs are single page applications. They serve a single webpage to the user that uses Javascript to get site data from an API. This lets you update information live and the user's site experience requires no loading of new pages.

  • View frameworks have many different kinds, React is a very popular and hyped up one managed by Facebook.

Redux is the data management store thingy

  • Redux is the thing in between React and the data. It does actions on the data and moves it around and makes it available to React and passes it to the server. You can think of it as a data service that is available across the entire site and maintains the same data store across different pages

Socket.io is the WebSocket library

  • WebSocket's allow close to real time transmission of data. It'll be how we do chat and comments on the site.

KOA RESTful API


Koa - Socket.io - Mongoose - Passport

Koa is the NodeJS server HTTP middleware framework for NodeJS

  • Koa lets us take http requests and other requests and serve stuff back that we set and decide on with JS.
  • Koa is very lightweight compared to Express and doesn't include anything out of the box.

Socket.io is the WebSocket library

  • Socket.io has a server-side part to interact with the client.

Mongoose is our Mongo ORM

  • Mongoose communicates with our Mongo database which is a doc-store style db, which means we don't have to do much if we want to change our database setup

Passport is our authentication management

  • Passport is pretty much the best authentication system afaik.

Discord Bot


ols2's People

Contributors

zachcd avatar etp12 avatar lewellync avatar

Watchers

Albert Yang 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.