Skip to content

pptra/AttendenceSystem

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#AttendanceSystem

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.

Release notes

Check them here: Release notes

###USAGE The Complete instructions for using AttendanceSystem is found here

###INSTALLATION

  1. The Attendance System can be downloaded from the Release
  2. Extracting the source from the Attendance System tarball is a simple matter of untarring:
$ tar xvf attendance-X.X.X.tar
  1. 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.
  1. Moving the Attendance System .war directory to %CATALINA_HOME%\webapps
$ mv attendance.war %CATALINA_HOME%\webapps

###BACKUP

  1. Shutdown tomcat:
$ systemctl stop tomcat
  1. 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
  1. Start tomcat:
$ systemctl start tomcat

###RESTORE

  1. Shutdown tomcat:
$ systemctl stop tomcat
  1. 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
  1. Start tomcat:
$ systemctl start tomcat

###ACKNOWLEDGEMENTS The Attendance system relies upon these free and openly available projects:

####BACKEND

####FRONTEND

####REFERENCE

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 65.3%
  • JavaScript 24.2%
  • HTML 8.5%
  • CSS 2.0%