How andrelux-ua/goit-react-hw-08 works
Project type and purpose
• This is a front-end single-page application (SPA) built with React and Vite.
• It implements user authentication and contact management, using Redux for state.
• There is no server or database code in this repo; it calls out to external REST-style APIs (auth & contacts).
File structure
• Top level
• index.html, public/, vite.config.js – your build and static-assets server via Vite (and in prod, Vercel).
• src/ – all application code:
– assets/ (images, audio)
– components/ – reusable UI pieces (AppBar, Forms, Lists, Modals, Loader, Navigation, etc.)
– pages/ – routed view components (Home, Login, Registration, Contacts, 404)
– redux/ – global state: store.js plus feature subfolders (auth, contacts, filters). Each has slice.js, operations.js (thunks), selectors.js.
– main.jsx – React entry point mounting <App /> into the DOM.
Elements
– Clear labels: “Browser”, “Vite Dev Server”, “React Components”, “Redux Store”, “Auth API”, “Contacts API”, etc.
• User → Components → Store → Thunks → External API → Store → Components → User.
• Dev workflow: File change → Vite HMR → Browser reload.
• Green for state layer (store & slices).
• Orange for network (API endpoints).
• Grey for build/deploy infrastructure (Vite, Vercel).