an instance of exam section of original moodle written in spring mvc.
- JDK 20.0.2
- Java 17 or higher
- maven
the default dependency of database is postgresql. if you want to change it just read this doc. then add this code to the 'src/main/resources/application.properties'
spring.datasource.url=<your jdbc url> (for example jdbc:postgresql://localhost:5432/moodle)
spring.datasource.username=<your db username> (for example postgres)
spring.datasource.password=<your db password> (for example moodle)
spring.datasource.driver-class-name=<path to your related database driver> (for example org.postgresql.Driver)
spring.jpa.hibernate.ddl-auto=update
then its time to run the application:
mvn clean install
java -cp target/moodle-1.0-SNAPSHOT.jar com.example.MoodleApplication
or
mvn spring-boot:run
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.