coraserver

command module
v0.0.0-...-9fd2f6d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: GPL-2.0 Imports: 11 Imported by: 0

README

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

  • Azure Account

Getting clientID, clientSecret, tenant

  1. Sign into https://portal.azure.com

  2. Create a new application and set the callbackURI to match what you are gonna use in production

  3. Get the clientID from the overview page.

  4. 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.

  5. 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL