- How to run docker images
- How to use the application
- How to run E2E automated tests
- How to run SAML Identity provider
(if you are on windows, you must avoid "sudo")
sudo docker pull se2team8/pulsebs-team8:v2
sudo docker run -p 3000:3000 -p 3001:3001 se2team8/pulsebs-team8:v2
- in the browser, go to
http://localhost:3000
Notice: to use the Login with SoftEng credentials
feature in the login page, you have to run the IdP docker image. See How to run SAML Identity provider.
sudo docker pull se2team8/pulsebs-team8:v1.5
sudo docker run -p 3000:3000 -p 3001:3001 se2team8/pulsebs-team8:v1.5
- in the browser, go to
http://localhost:3000
sudo docker pull se2team8/pulsebs-team8:v1
sudo docker run -p 3000:3000 -p 3001:3001 se2team8/pulsebs-team8:v1
- in the browser, go to
http://localhost:3000
For only the very first version, we used docker-compose. So, you need to:
- download the code of this repository with tag v0
- in the folder of the code, execute:
docker-compose pull
- then execute:
docker-compose run
- in the browser, go to
http://localhost:3000
Password | |
---|---|
pulsebs8-s0001@yahoo.com | pass1 |
pulsebs8-s0002@yahoo.com | pass1 |
pulsebs8-s0003@yahoo.com | pass1 |
... | ... |
pulsebs8-s0023@yahoo.com | pass1 |
Notice: for version v0, use the emails s0001@stud.com,s0002@stud.com
Password | |
---|---|
pulsebs8-d0001@yahoo.com | pass2 |
pulsebs8-d0002@yahoo.com | pass2 |
pulsebs8-d0003@yahoo.com | pass2 |
... | ... |
pulsebs8-d0007@yahoo.com | pass2 |
Notice: for version v0, use the emails d0001@prof.com, d0002@prof.com
Password | |
---|---|
pulsebs8-o0001@yahoo.com | pass2 |
Password | |
---|---|
pulsebs8-m0001@yahoo.com | pass2 |
Use the same format of csv files provided by the Product Owner
To upload some data in the officer page
Integer ID, "S", Name, Surname, Email, Password Hash, Course
ex. 56,S,Aron,Avneet,pulsebs8-s0056@yahoo.com,$2b$12$JzpgpB9ruQNwczLJXMkL9.UPoo4K1Sdlpx4g6/9aVHRyz/GzjrRpa,Computer Engineering
Integer ID, "D", Name, Surname, Email, Password Hash, Course
ex. 79,D,Pietro,Bianchi,pulsebs8-d0079@yahoo.com,$2b$12$AYemd0Fi1NUOLOMgENIUGes2xDB4IPlaCYPLmYGwM2chNF9qfgpzK,Computer Engineering
Integer ID, Course Name, Course of study
ex. 10,2,Information Systems security,Computer Engineering
Integer ID, Name, Capacity
ex. 16,10A,250
Integer ID, Teacher ID, Subject ID, DateHour (in the format YYYY-MM-DDTHH:MM:SS.000Z), Modality ("In person" or "Virtual"), Classroom, Capacity Of the classroom, Booked People
ex. 121,28,7,2020-12-10T11:30:00.000Z,In person,14,30,21
- Clone the Repository https://github.com/LucaBarco/Pulsebs-SAMLIdP
- Go into the repository folder
- run the commands:
docker-compose build
docker-compose up
- Then, run the application as usual (either npm start in both server and client or via docker image)
To successfully run all end-to-end tests, you must first have the SAML IdP up and running (see instructions above).
Then, run these configurations:
- on the server
npm start:test
- on the client
npm start
npm test:e2e