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.
This commit is contained in:
2025-07-22 16:47:44 +02:00
parent cb206c10bb
commit c35838b034
9 changed files with 236 additions and 18 deletions

View File

@@ -1,15 +1,15 @@
services:
react-frontend:
container_name: bikelane-frontend_react
build: ./client
ports:
- "5001:5001"
environment:
- CHOKIDAR_USEPOLLING=true
volumes:
- ./client:/app
- /app/node_modules
restart: unless-stopped
# react-frontend:
# container_name: bikelane-frontend_react
# build: ./client
# ports:
# - "5001:5001"
# environment:
# - CHOKIDAR_USEPOLLING=true
# volumes:
# - ./client:/app
# - /app/node_modules
# restart: unless-stopped
bikelane-backend:
container_name: bikelane-backend_express