video
https://www.youtube.com/watch?v=GsD2gFseBa0
ppt
https://drive.google.com/file/d/1Hlra9Pbw-wq_sjWKOs8l-BHvFnXWh-uq/view
Java 8 + Tomcat 9.0 + Windows + Eclipse EE
- Clone source code and open project in Eclipse EE IDE.
- Setting Runtime Environments (Window -> Preferences -> Server -> Runtime Environments -> Add -> Select Apache Tomcat v9.0 & Create a new local server -> Next -> Finish)
- Export WAR to project root directory
- Deploy on local Tomcat or Docker.
- local Tomcat
Copy WAR file to your Tomcat'swebapps/
and updatecontext.xml
underconf/
, you could refer totomcat-config
in this project. - Docker
Open terminal and cd to project root, you will see Dockerfile, compose.yaml, WAR file, sql and tomcat-config directory.
- Run service
- local Tomcat
Executebin/startup.sh
for start up andbin/shutdown.sh
for shut down. - Docker
Rundocker compose up
for first time ordocker compose up -d --force-recreate --build web
if you export a new WAR file.
- You can access the application at http://localhost:8888/CGA102G1/front_end/index.jsp for customer use and http://localhost:8888/CGA102G1/back_end/emp_index.jsp for manager use.
Role | act | psw |
---|---|---|
member | [email protected] | aa123123 |
admin | 1 | 123456 |
- The notify animation(keyframes) works on Windows server but but does not work when deployed on Docker. The main reason is unclear.