How tevai987/site-cv works
site-cv is a small article-management web app with user registration and login. The principal workflow is a visitor registering or logging in through the React client; authentication requests reach the Express API, which checks or saves users in MongoDB. The API also exposes article create/read/update/delete operations backed by an article model. The client routes users to registration, login, and home views, and keeps user data in Redux. The README gives no further capability detail; home/logs behavior and article authorization wiring are not established by the excerpts.
Main entry points: route.js Page routes · authRoute.js Auth routes · register.js Registration form · logIn.js Login form
Components 21
React client
- App shell
client/src/App.js - Page routes
client/src/routes/route.js - Registration form
client/src/components/form/register.js - Login form
client/src/components/form/logIn.js - Home view
client/src/components/home/home.js - Logs view
client/src/Page/logs/logs.js
User identity
- Auth routes
backend/routes/authRoute.js - Auth operations
backend/controllers/authController.js - Token checks
backend/middleware/auth.js - User records
backend/models/userSchema.js
Article API
- Article routes
backend/routes/articlesRoute.js - Article CRUD
backend/controllers/articlesController.js - Article records
backend/models/articleSchema.js - API server
backend/index.js
Client state
- Login state
client/src/store/slices/users/logInSlices.js - User state
client/src/store/slices/users/usersSlices.js - Root reducer
client/src/store/reducer.js - Redux store
client/src/store/store.js - Reducer monitor
client/src/store/config/enhancers/monitorReducers.js - Action logger
client/src/store/config/middleWare/logger.js
Other components
- Visitor
Connections 20
- Visitor → App shell: opens
client/src/App.js - App shell → Page routes: renders
client/src/App.js - Page routes → Registration form: routes to
client/src/routes/route.js - Page routes → Login form: routes to
client/src/routes/route.js - Page routes → Home view: routes to
client/src/routes/route.js - Registration form → Auth routes: posts registration
client/src/components/form/register.js - Login form → Auth routes: posts login
client/src/components/form/logIn.js - Registration form → User state: dispatches
client/src/components/form/register.js - Login form → Login state: dispatches
client/src/components/form/logIn.js - Auth routes → Auth operations: routes requests
backend/routes/authRoute.js - Auth operations → User records: reads and writes
backend/controllers/authController.js - API server → Auth routes: mounts
backend/index.js - API server → Article routes: mounts
backend/index.js - Article routes → Article CRUD: routes requests
backend/routes/articlesRoute.js - Article CRUD → Article records: reads and writes
backend/controllers/articlesController.js - Token checks → User records: checks admin
backend/middleware/auth.js - User state → Root reducer: registered in
client/src/store/reducer.js - Root reducer → Redux store: configures
client/src/store/store.js - Redux store → Reducer monitor: adds enhancer
client/src/store/store.js - Redux store → Action logger: adds middleware
client/src/store/store.js