A sample project to demonstrate how a web app can be built using a Spring / AngularJs stack. The frontend is based on Angular and the backend is composed of JSON REST web services based on Spring / JPA, secured with Spring Security.
Check them here: Release notes
###USAGE The Complete instructions for using AttendanceSystem is found here
###INSTALLATION
- The Attendance System can be downloaded from the Release
- Extracting the source from the Attendance System tarball is a simple matter of untarring:
$ tar xvf attendance-X.X.X.tar
- Editing the configuration files under
PREFIX/WEB-INF/system.properties
$ vi PREFIX/WEB-INF/system.properties
Attributes:
- pageSize: The size of a page of output.
- smtp.host: Server that will send to email.
- smtp.port: Port to connect to the SMTP server.
- smtp.username: SMTP username.
- smtp.password: SMTP password.
- mail.url: the link added in email send by the Attendance System that is used to link the Attendance System website.
- mail.header: the email header.
- mail.footer: the email footer.
- google.calendar.service.account.p12: The Google calendar service account credential.
- google.calendar.application.name: The name of the client application accessing the Google Calendar service.
- google.calendar.service.account.email: The email address to Google Calendar account.
- google.calendar.account.user: The Google Calendar service account.
- google.calendar.id: The Google Calendar service account id.
- db.username: The database username.
- db.password: The database password.
- db.driver: The driver used to connect to database.
- db.url: database: The address point to the database to which you with to connect.
- Moving the Attendance System .war directory to
%CATALINA_HOME%\webapps
$ mv attendance.war %CATALINA_HOME%\webapps
###BACKUP
- Shutdown tomcat:
$ systemctl stop tomcat
- Backup database
attendance2:
$ pg_dump -W -U postgres -h localhost attendance2 > attendance2.sql
The Complete instructions for backup database(Postgresql 9.1) can be found here 3. Backup attendance war directory:
$ tar cvf attendance.tar %CATALINA_HOME%\webapps\attendance.war
- Start tomcat:
$ systemctl start tomcat
###RESTORE
- Shutdown tomcat:
$ systemctl stop tomcat
- Restore database
attendance2:
$ dropdb -W -U postgres -h localhost attendance2
$ createdb -W -U postgres -h localhost attendance2
$ psql -W -U postgres -h localhost attendance2 < 20150304.sql
The Complete instructions for restore database(Postgresql 9.1) can be found here 3. Restore attendance war directory:
$ tar xvf attendance.tar
$ rm -R -f %CATALINA_HOME%\webapps\attendance.war
$ mv attendance.war %CATALINA_HOME%\webapps
- Start tomcat:
$ systemctl start tomcat
###ACKNOWLEDGEMENTS The Attendance system relies upon these free and openly available projects:
####BACKEND
####FRONTEND
####REFERENCE