This project is part of the AIMlearning project, which is co-funded by the European Union. The project will run from 1.2.2024 to 30.4.2027.
WebLogApp is a logging tool designed to help users track their weekly and monthly work hours. It provides a user-friendly interface for logging work details, generating reports, and saving data to a database.
- User Authentication: Secure login and registration system with hashed passwords.
- Weekly Logging: Log daily work hours, summaries, and project codes for up to 4 weeks. Includes ability to change the lunchbreak length and on which days break has been taken.
- Monthly Logging: Summarize weekly logs into monthly reports.
- Dynamic Forms: System adds or removes weekly forms dynamically. No hard coded forms!
- CSV Export: Generate CSV reports for weekly and monthly logs for local handling.
- Data Persistence: Save logs to a PostgreSQL database.
- Responsive Design: User-friendly interface with a modern design.
- Easy changes to CSV separator in code: Changes to separator in CSV-format is easily changed.
- Frontend: HTML, CSS, JavaScript
- Backend: Deno.js
- Database: PostgreSQL
- Libraries:
- Clone the repository: git clone https://github.com/your-repo/WebLogApp.git | cd WebLogApp .
- Install PostgreSQL and check that it has been installed properly.
- Create a database named "logtool-db".
- Set up the database with SQL script: psql -U postgres -d logtool-db -f db/system_structure.sql .
- Configure the database connection in code at db/db.js with your own credentials!!!
- Run the application with: deno run --allow-net --allow-env --allow-read --watch app.js .
- Use of the application requires account creation and login.
- Creating account is very easy with any email and any password.
- Recommended to NOT use any actual email you may actually use. System only checks if the field has been filled with an email.
- Navigate to the Weekly Logging Tool.
- Enter the week number and year, then click "Set Week".
- Select lunch break length
- Fill in the daily work details (time started, time ended, lunch break, summary, project code).
- Add or remove weeks as needed using the "Add Week" and "Delete Week" buttons.
- Save the log or download it as a CSV file.
- Navigate to the Monthly Logging Tool.
- Enter the month and year, then click "Set Month".
- Fill in the weekly hours, project codes, and summaries for each week.
- Save the log or download it as a CSV file.
user_id: Primary keyusername: User's email (unique)password_hash: Hashed passworduser_token: UUID for pseudonymizationrole: User role (default:user)
log_id: Primary keyuser_token: Foreign key referencingzephyr_usersweek_number: Week numberyear: Yearday: Day of the weekdate: Datetime_started: Start timetime_ended: End timelunch_break: Boolean indicating if a lunch break was takensummary: Work summaryproject_code: Project codehours_worked: Total hours worked
log_id: Primary keyuser_token: Foreign key referencingzephyr_usersmonth: Monthyear: Yeartotal_hours: Total hours worked in the month
log_id: Primary keyadmin_id: Foreign key referencingzephyr_usersaction: Admin action descriptionresource_id: ID of the affected resourcetimestamp: Timestamp of the action
- Password Hashing: User passwords are hashed using bcrypt.
- Session Management: Secure session handling with UUIDs and cookies.
- Pseudonymization: User data is pseudonymized using UUIDs.
-
Deno for the runtime environment.
-
PostgreSQL for the database.
-
bcrypt for password hashing.
-
zod for input validation.