Unified gateway to join online lectures at MSRIT for 4th semester students in the Computer Science and Engineering branch.
Uses the current Date and Time to pick the right URL from a Deta database. The endpoint is deployed on a Vercel environment and also exposes an API and webpage to allow for CRUD of the class links.
The service is written in NodeJS and the webpage designed (barely) using HTML and vanilla JS.
Endpoint | Type | Description |
---|---|---|
/ | GET | Redirects to your lecture |
/api/updatett | POST | Replaces the list of links at your Deta DB |
/updatett.html | GET | Basic webpage for CRUD of links daywise |
-
Install Vercel CLI
$ npm i -g vercel
-
Create your Deta DB and name it
tt
-
Obtain the API KEY and add to your Vercel Environment secrets
$ vercel secrets add PROJECT_API_KEY Your_API_Key_Here
-
Install dependencies
$ npm i
-
Setup your Vercel dev environment
$ vercel dev
You will be asked to
- Create/login to a Vercel account.
- Verify project settings, at this point edit the settings your CLI as follows
- Build Command: CLEAR THE DEFAULT SETTING
- Output Directory: Hit Enter key to leave as is
- Development Command: Hit Enter key to leave as is
- Launch your server in the browser at the specified port.
-
You're all set to go, customize the functions and add some design to the webpage to use this for yourself/your class.
Do leave a 🌟 if you liked it