The web application allows to create timelines of historical events that teachers can show to students to better learn history. The main functionality for teachers is to add new historical events (e.g. Austerlitz battle, Dec 2, 1805). Each event is represented by a date, a location, a description and an image/placeholder. Teachers can create several timelines and add events to them. All events on a timeline will be shown graphically ordered in time (no need of something complex, also some simple HTML will do it). Teachers can create some study groups (e.g. Roman Empire, Second World War, etc...) and enroll students. Teachers can add one or more timelines to each group. Students can login to the system and take part to some groups created by teachers. They will be able to see all the timelines for the specific group and add a comment to them. Searching among all events is also possible.
role | password | |
---|---|---|
student | [email protected] | password |
teacher | [email protected] | password |
admin | [email protected] | password |
In the root directory of the project run:
mvn clean install -DskipTests && cd spring-mvc && mvn cargo:run
which runs a spring mvc web server accessible on http://localhost:8080/pa165
In the root directory of the project run:
mvn clean install -DskipTests && cd rest && mvn cargo:run
which runs a spring rest web server accessible on http://localhost:8080/pa165/rest
Create a new timeline by POST method
curl -X POST -i -H "Content-Type: application/json" --data
'{"name":"test","fromDate":"1000-02-01","toDate":"1000-02-02", "studyGroupId":"1"}'
http://localhost:8080/pa165/rest/timelines/create
Update a timeline by PUT method
curl -X PUT -i -H "Content-Type: application/json" --data
'{"id":"1","name":"test","fromDate":"1000-02-01","toDate":"1000-02-02"}'
http://localhost:8080/pa165/rest/timelines/update
Delete a timeline by DELETE method
curl -X DELETE
http://localhost:8080/pa165/rest/timelines/delete/1
Get list of all Timelines
curl -i -X GET
http://localhost:8080/pa165/rest/timelines
Get list of Timelines in given time frame
curl -i -X GET
http://localhost:8080/pa165/rest/timelines/between/1000-02-01/1000-02-02
Get Timeline by id
curl -i -X GET
http://localhost:8080/pa165/rest/timelines/1
Get Timeline by name
curl -i -X GET
http://localhost:8080/pa165/rest/timelines/testname