Commit Graph

18 Commits

Author SHA1 Message Date
584473ba41 changed ports and networking for new react frontend 2025-07-23 12:10:29 +02:00
d552f40c2d changed project struture.
Also addded a functional JWT token service.

Also added user react frontend
2025-07-23 11:59:59 +02:00
2b4b554c24 Added some debugging to the token service file.
And converted the sidebar script to a react component.
2025-07-23 10:29:11 +02:00
3ef99aebfe re formatted code 2025-07-22 21:15:10 +02:00
be7d49820d fix: ensure proper cleanup during logout by removing token and users from storage 2025-07-22 21:14:01 +02:00
f05bb4c23c added role column to table 2025-07-22 21:12:30 +02:00
eb28eed69b changed design and icons for the whole website 2025-07-22 21:01:44 +02:00
e019eb75be refactor: improve header component layout and button styling 2025-07-22 19:47:56 +02:00
b249c73aa4 added jwt service. Currently it has some bugs and it is not very functional.
Also restructured the project a bit - created a service folder for the database script and the token script.
2025-07-22 19:39:54 +02:00
c2a035ca34 added dependecies to later create the jwt token.
Those I have installed with npm, to be more specific with: npm install express cookie-parser body-parser jose
2025-07-22 17:05:41 +02:00
c35838b034 added Login function.
Also added user table but insecure. (In the next time, going to secure the get all users.)

Also noted out the react frontend from the docker compose file - just for development purposes.

I have also created some utils to logout the user and to get all users.
2025-07-22 16:47:44 +02:00
cb206c10bb added react layout with header, main and footer 2025-07-22 12:41:55 +02:00
b9699bd512 fix: update import path for App component in main.tsx
feat: add error handling middleware in server.js
2025-07-21 20:56:11 +02:00
7ab62b8d13 Add circle-user-solid.svg icon from Font Awesome 2025-07-21 20:42:11 +02:00
e4bceb8258 Add CORS middleware and user database schema
- Implemented CORS middleware in the project to handle cross-origin requests.
- Added necessary files for the CORS package including README, LICENSE, and history documentation.
- Created a SQL schema for the users table with appropriate fields and constraints.
- Inserted mock data into the users table for testing purposes.
2025-07-21 17:38:25 +02:00
46fa608a47 feat: initialize React client with Vite setup
- Added package.json with dependencies for React, Vite, TypeScript, and ESLint.
- Included Vite logo SVG and React logo SVG in the public and assets directories respectively.
- Created main application component (App.tsx) with basic structure and state management.
- Added global styles in index.css and component-specific styles in App.css.
- Configured TypeScript with tsconfig files for app and node environments.
- Set up Vite configuration for development server with specified host and port.
2025-07-21 15:20:41 +02:00
c4c8db94a6 added more structure to project 2025-07-21 14:51:10 +02:00
22b358f543 added project structure 2025-07-21 13:41:42 +02:00