coraserver
Welcome to CORA, your university's scheduling companion! Our server-side code powers CORA, providing real-time timetables and free slots. Seamlessly book or cancel appointments, making university life a breeze. With efficiency at its core, CORA simplifies scheduling, ensuring you maximize your time. Dive into the code, and let CORA transform how you manage your university schedule!
Requirements
Getting clientID, clientSecret, tenant
-
Sign into https://portal.azure.com
-
Create a new application and set the callbackURI
to match what you are gonna use in production
-
Get the clientID
from the overview page.
-
Generate a client secret: In the application's overview page, navigate to "Certificates & secrets" and click on "New client secret". Enter a description, choose an expiration option, and click "Add". Make a note of the generated client secret value. Please note that this will only appear once, if you refresh the page or login later this will be hidden.
-
If your organization allows you to access the Azure Active Directory then tenant
will be your tenant ID but, if you are using a personal account you should set tenant
to be common
even though you will have a tenant ID.
config.json
The format of config.json
is as follows
{
"clientID": "YOUR_CLIENT_ID",
"clientSecret": "YOUR_SECRET_KEY",
"redirectURL": "http://localhost:8080/oauth/callback",
"scopes": [
"openid"
],
"tenant": "common"
}
Building and Running
git clone https://github.com/deebakkarthi/coraserver
go mod tidy
go build
./coraserver