This is a demo project of Spring boot using OCS. A website for the observatory system to allow scientists and researchers to create a science plan, test a science plan, and Submit a science plan by using java Spring boot.
- Clone this Github Repository
- Open project as build.gradle
- Run Demo_Application.main() in com/example/demo/DemoApplication.java
- Open web browser: http://localhost:8080/
- Login
- Create a science plan
- Test a science plan
- Submit a science plan
We used Singleton design pattern for our project because it enable us to ensure that a class has only one instance while providing a global access point to this instance. This design pattern prevent other objects use new operator.
- UserController.java where the ocs is a single instance that is accessible to all clients.
- SciencePlanController where the ocs is a single instance that is accessible to all science plans.