The User Service API provides features such as user authentication, profile management, role-based access control, and user analytics. The application is built with a focus on security and performance, ensuring that user data is protected while delivering a smooth user experience.
-
Backend
- Node, Express, TypeScript, JWT, PostgresSQL, Redis, Docker, Mocha, Sinon, Chai
-
Frontend
- React, TypeScript, Vite, Vitest, Styled Components, Hooks
-
Deploy
- Vercel and Railway
-
Clone the project
-
Inside of root project, run npm install:apps
-
Run docker containers backend, Redis and database: npm run compose:up
-
Run frontend: npm run dev
1. Backend - Go to app/backend and run: npm run test:coverage or npm run test
2. Frontend - Go to app/frontend and run: npm run coverage or npm run test
- POST /login - User login app
- GET /login/role - Get user role - (requires authorization)
- POST /user - Create a new user
- GET /user - Read a list of all users - (requires authorization)
- PUT /user/:id - Update a user - (requires authorization)
- DELETE /user/:id - Delete a user - (requires authorization)