Codebase/Folder | Description |
---|---|
index | The main file for the server (TS). This is ran when you run the server |
utils | The main folder for the server, houses the utils or users and utils files |
router | The folder for the router/showing the server is runing |
First you need to make a github Oauth app See here
These fields should be filled out like this:
Now rename the .env.example to .env and fill out the feelds
Example:
URL=Your Mongo DB URL
ID=Your Client ID (Github)
SECRET=Your Client SECRET (Github)
Type the following into the command line:
$ yarn install
Type the following into the command line:
$ yarn build
Type the following into the command line:
$ yarn start
This is the server folder for the chat app. It gest all requests from the client side.
Modules Used |
---|
Socket.io |
express |
http |
This is a module to send and receve request faster than HTTP requests
This module helps make a server on a port.