A Video Server that handles HTTP requests based on user and room management
HTML
Video Server
This is an API done in Express + Typescript. The Goal of this project is a video-server that receive requests to management users and rooms.
How To Install
$ git clone <https://github.com/Mateussmo/video-server.git># Install the dependencies
$ npm install
# Run the application in development mode
$ npm run dev
# Run the application in production mode
$ npm start
# The server will start on port 3000 - <http://localhost:3000>
Setting the environment variables
Create an .env file
Inside it, add three environment variables
MONGO_DATABASE = URL to connect to mongodb
SECRET = A secret string, used to generate the token
EXPIRESIN = Token expiration time (Eg: 2 days)
Project
Run the server
# Run the application in development mode
$ npm run dev
# The server will start on port 3000 - <http://localhost:3000>