This repository contains a web application designed to help students select the right university and academic program. Built with Falsk, the app allows students to explore available courses offered by faculty and easily enroll in the ones that match their interests. The platform provides a user-friendly interface for discovering programs, reviewing course details, and streamlining the enrollment process, making it an essential tool for students planning their academic future.
Applicazione web atta a gestire i corsi di orientamento dell'università Ca' Foscari di venezia.
L'applicativo si divide in due aree:
- Backend - sviluppato usando
Pythoncon il frameworkFLask - Frontend - sviluppato usando
JavaScriptcon il frameworkAngular
Segue una breve guida su come installare e configurare i file necessari a far funzionare l'applicativo.
ATTENZIONE: la seguente procedura vale per ambiente windows, per altri sistemi operativi i comandi potrebbero leggermente variare.
- Databse:
- Creare ruoli ed utenti del database necessari all'applicativo (vedere documentazione);
- Eseguire il dump del database (
./dump database e file JSON scuole\PostgreSQL___postgres_localhost-2022_08_28_18_03_47-dump.sql) su DBMS Postgresql.
- Backend:
- (Opzionale) Creare virtual environment;
- Installare i pacchetti Python usando il seguente comando:
pip install -r requirements.txt; - Settare il file
.\sorgente_orientamento_dais\backend\.env, ecco un esempio di configurazione:
SECRET_KEY=password SQLALCHEMY_DATABASE_URI=postgresql://postgres:password@localhost:5432/orientamento_dais SQLALCHEMY_DATABASE_URI_PRELOGIN=postgresql://preLoginUser_flask:password@localhost:5432/orientamento_dais SQLALCHEMY_DATABASE_URI_STUDENTI=postgresql://studente_flask:password@localhost:5432/orientamento_dais SQLALCHEMY_DATABASE_URI_DOCENTI=postgresql://docente_flask:password@localhost:5432/orientamento_dais SQLALCHEMY_DATABASE_URI_AMMINISTRATORI=postgresql://amministratore_flask:password@localhost:5432/orientamento_dais UPLOAD_FOLDER=.\static MAIL_PW=password - Frontend:
- installare pacchetti necessari lanciando il comando
pip install.
- installare pacchetti necessari lanciando il comando
ATTENZIONE: la seguente procedura vale per ambiente windows, per altri sistemi operativi i comandi potrebbero leggermente variare.
Segue una breve guida su come avviare l'applicativo.
- Backend:
- Impostare le variabili d'ambiente necessari per l'avvio di Flask con i seguenti comandi:
$env:FLASK_ENV = "development"$env:FLASK_DEBUG = "1"
- (Opzionale) Avviare virtual environment con il seguente comando:
.\venv\Scripts\activate; - Avviare Flask con il seguente comoando:
flask run.
- Impostare le variabili d'ambiente necessari per l'avvio di Flask con i seguenti comandi:
- Frontend:
- Avviare Angular con il seguente comando:
ng serve.
- Avviare Angular con il seguente comando: