Skip to content

Power-Agentz/irya-web

Repository files navigation

Irya Web

Frontend application for Minha Irya.

Stack

  • React
  • TypeScript
  • Vite
  • Tailwind CSS
  • Axios
  • React Router

Requirements

  • Node.js 20+
  • npm

Environment Variables

Development (.env.development)

VITE_API_URL=http://localhost:3001

Production (.env.production)

VITE_API_URL=https://irya-api-production.up.railway.app

Install

npm install

Run Locally

npm run dev

Default local URL: http://localhost:5173.

Build

npm run build

Preview Production Build

npm run preview

Lint

npm run lint

Project Structure

  • src/pages: route-level pages (Login, Cadastro, Home, Questionario, Resultado)
  • src/components: reusable UI components
  • src/hooks: reusable hooks
  • src/utils: helpers (phone formatting, session, API errors)
  • src/api.ts: Axios client config

Authentication and API

  • JWT is stored in local session utilities.
  • Axios automatically sends Authorization: Bearer <token> when available.
  • Make sure the API CORS allowlist includes your frontend domain.

Deployment Notes

  • For Vercel, keep SPA rewrite in vercel.json:
    • /(.*) -> /
  • Set VITE_API_URL in your hosting environment (do not rely only on local .env.production).

About

A React-based web application that serves as the initial onboarding interface for Irya, the AI-powered assistant by WHIM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors