The backend was generated with Visual Studio 2019.
Some tools are required to use the back. You need to install :
- Visual Studio
-
- with IISExpress
-
- with SQL LocalDb
- EntityFramework 4.7.2
- SQL Management Studio
The project is called Isima
.
To launch the project, double click on the file Isima.sln
The project is divided in subparts.
Contains the API and the controllers to add routes.
Contains the Business Layer.
Contains the Data Access Layer
- The EMDX file with the database model
- The repository of each class (Scenario and Choice)
- The class Scenario and Choice
Contains the DTO for each class (Scenario and Choice)
Contains some useful functions in the Extensions.cs
file :
- ToEntity create an entity from a Dto Element
- ToDto create a Dto element from an entity
The database is stored on our Azure account. If you want to access to it, you need to ask for permission by sending us an email.
Click the IISExpress (Google Chrome)
button (the greed triangle button) to start the backend
It will automaticaly open a web browser with the url http://localhost:4034/
.
To see the swagger screen of the different API available, navigate to http://localhost:4034/swagger
To get the result of our API :
http://localhost:4034/api/Scenario
http://localhost:4034/api/Choice
The Frontend was generated with Angular CLI version 8.3.23.
Angular requires a current, active LTS, or maintenance LTS version of Node.js. You can install the Node Packet Manager by running the following command on a Debian-based system:
apt install npm
Then, you will need to install the Angular CLI to be able to launch the development server. Please run the following command:
npm install -g @angular/cli
Before starting the server, always make sure that the dependencies are up to date. To do this, please run the following command in the "Front" folder of our project:
npm install
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.