How roquealvarez/proyecto-final-fastnota works
Bloc de notas is a React note-taking app backed by an Express REST API and JSON-file storage. The main workflow is to register or log in, enter the protected notes view, create and manage pending notes, then review completed notes on the profile page; users can also edit profile data. React context and its reducer hold the current user in memory. The README documents API capabilities and storage, but most page-to-API calls were not excerpted, so those links are shown as unverified. The route structure and sampled note/profile requests support the other connections.
Main entry points: App.jsx Route application · server.js REST API · Contexto.jsx Session context · home.jsx Pending notes
Components 15
User experience
- Route application
src/App.jsx - Pending notes
src/pages/home.jsx - Completed notes
src/pages/usuario.jsx
Identity and session
- Edit profile
src/pages/EditarPerfil.jsx - Sign in
src/pages/login.jsx - Registration
src/pages/registro.jsx - Private routes
src/routes/RutasPrivadas.jsx - Public routes
src/routes/RutasPublicas.jsx
Session state
- Session context
src/context/Contexto.jsx - Session provider
src/context/Provider.jsx - Session reducer
src/context/MiReducer.jsx - Action types
src/context/type.jsx
API and storage
- REST API
backend/server.js - JSON data store
backend/db.json
Other components
- User
Connections 22
- User → Route application: uses
src/App.jsx - Route application → Private routes: routes through
src/App.jsx - Route application → Public routes: routes through
src/App.jsx - Route application → Pending notes: routes to
src/App.jsx - Route application → Completed notes: routes to
src/App.jsx - Route application → Edit profile: routes to
src/App.jsx - Route application → Sign in: routes to
src/App.jsx - Route application → Registration: routes to
src/App.jsx - Private routes → Session context: reads session
src/routes/RutasPrivadas.jsx - Public routes → Session context: reads session
src/routes/RutasPublicas.jsx - Session provider → Session context: provides value
src/context/Provider.jsx - Session provider → Session reducer: dispatches actions
src/context/Provider.jsx - Session reducer → Action types: uses types
src/context/MiReducer.jsx - Pending notes → Session context: reads session
src/pages/home.jsx - Completed notes → Session context: reads session
src/pages/usuario.jsx - Edit profile → Session context: reads session
src/pages/EditarPerfil.jsx - Pending notes → REST API: requests notes
src/pages/home.jsx - Completed notes → REST API: requests notes
src/pages/usuario.jsx - Edit profile → REST API: updates profile
src/pages/EditarPerfil.jsx - Sign in → REST API: authenticates
- Registration → REST API: registers account
- REST API → JSON data store: reads and writes
README.md