Giter Club home page Giter Club logo

ekknd2 / historical-timeline Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zloutek1/historical-timeline

1.0 0.0 0.0 3.73 MB

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.

Java 99.94% JavaScript 0.06%

historical-timeline's Introduction

historical-timeline

CI codecov java maven

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.

Credentials

role email password
student [email protected] password
teacher [email protected] password
admin [email protected] password

How to build and run spring-mvc

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

How to build and run REST

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

How to test 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

historical-timeline's People

Contributors

zloutek1 avatar rutzzz avatar ekknd2 avatar dvdk01 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.