- git clone
- yarn
- npm run server
- open another cmd terminal and npm start
-
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 are varied, React is a very popular and hyped up open source one managed by Facebook.
- Redux is the datastore. It does actions on the data and moves it around and makes it available to React and passes it to the server.
- WebSocket's allow back and forth transmission of data between client and server and vice versa. Its best for small transfers.
- 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 has a server-side part to interact with the client.
- 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 pretty much the best authentication system afaik.
- Clone the repo
npm install
dependencies- Configure MongoDB, bot api token
- Run
node discord/index.js