studentiunimi.it is a fully responsive website built with React and Fluent UI, with the aim of providing services and access to all groups of didactic courses and general purposes to students of the University of Milan. This website displays data and interacts with a database thanks to the APIs made available by the backend.
What world would it be without a dark mode?
Localization is crucial for a website that can be used by international students; we make it available without further page loads.
Infinite possibilities for multi-color palette usage.
APIs Usage Service ๐
Simple service to create requests and handle APIs responses.
/**
* Class to build response
*/
class Result<T>
{
public status:number;
public value?:T;
public message:string;
constructor(status: number, value?:T, message:string = "")
{
this.status = status;
this.value = value;
this.message = message;
}
};
/**
* Main function to retrieve data from endpoints.
* @param {string} path Path of the resource
*/
async function getAsync<T>(path: string) : Promise<Result<T>>
{
try {
const response = await fetch(path);
if (!response.ok) {
return new Result<T>(response.status, undefined, response.statusText);
}
let res = await response.json() as T;
return new Result<T>(200,res);
} catch(err) {
console.error(err);
return new Result<T>(500,undefined);
}
};
Example of academic courses retrieve:
/**
* This function retrieves the courses of a specific degree.
* @param {string} degreeKey
*/
export async function getCourses(degreeKey: string): Promise<Result<CourseDegree[]>> {
return getAsync<CourseDegree[]>(`${api_endpoint}${courses_endpoint}?deg_id=${degreeKey}`);
};
Main links of StudentiUnimi Network
- ๐ซ Telegram channel (You can find everything here);
- ๐ Groups (You can find all our groups here);
- ๐จโ๐จโ๐ฆ Main group (Here you can talk about anything related to our University)
- ๐ฎ Rules of Telegram groups (Read before using any of our groups);
- ๐ Wiki (Resource to exchange useful materials about teaching courses);
- ๐โ๐จ Services and guides (How to download video lessons from Ariel, Unsubscribe from webmail lists, Unimia, Sifa Services, Webmail, Student Portal, Virtual classroom, etc.);
- ๐จโ๐ป University related informations (Useful informations about our University and Representatives list).
The network and its website are not affiliated with the University of Milan.