How textilflow-curso-open-source/frontend works
Project type and purpose
• This is a full-stack prototype (front-end heavy) consisting of an Angular single-page application (SPA) and a lightweight JSON-server “backend” for local testing. The Angular app (“TextilFlowFrontEnd”) implements user authentication, role-based views (businessman, supplier), batch processing, configuration, observations, and requests workflows. It is hosted via Firebase Hosting.
File structure
• Top-level:
• src/ – Angular application sources
• public/ – static assets and internationalization files
• server/ – JSON-server configuration (db.json, routes.json, start scripts) for mock API
• firebase.json / .firebaserc – Firebase Hosting config
• angular.json, tsconfig*.json, package.json – build and dependency configs
• Inside src/app/:
• auth/ – models, services, login/register/role-selector views
• batch/, businessman/, supplier/, configuration/, observation/, requests/ – feature modules: each has components, models, services
• core/ – shared UI components (buttons, cards, inputs, notifications, theme switcher) and base services
• app.routes.ts, app.config.ts – application routing and configuration
• Environment config under src/environments/
• Public assets under src/assets/themes and src/public/assets
README for additional insights
• Standard Angular CLI project with ng serve, ng build, Karma tests, e2e tests. No explicit backend instructions other than local JSON-server.