Ingenieria-En-Software-2 / Frontend

MIT License
0 stars 0 forks source link

Frontend

Este repositorio contiene el código del frontend de "Caribbean Wallet". Es una aplicación de una plataforma de Billetera Móvil basada en el dominio de e-Banking.

Instalación

Asegúrate de tener instalado Node.js y npm en tu sistema.

  1. Clona el repositorio:

    git clone git@github.com:Ingenieria-En-Software-2/Frontend.git
  2. Navega hasta el directorio del proyecto:

    cd Frontend
  3. Instala las dependencias:

    make install

Tecnologías utilizadas

Dependencies

DevDependencies

Ejecución

  1. Ejecuta el proyecto en modo de desarrollo:

    make run

    Esto iniciará el servidor de desarrollo y la aplicación estará disponible en http://localhost:5173/

  2. Otros comandos disponibles:

    • Compila el proyecto para producción.

      make build
    • Ejecuta el linter para verificar el código.

      make lint
    • Inicia un servidor para previsualizar la compilación de producción.

      make preview

      Setup

Add .env in the root folder and add the following variables:

VITE_API_URL="http://<ip of backend>:<port of backend>/api"

If you run the backend locally, it will the ip of the backend will be the ip of your machine you can use localhost, the port will be the one you set when you run the backend, the default is 5000

Run frontend in local

npm install
npm run dev

Run the frontend and the server for the Google ReCaptcha locally

npm install
npm run captcha

Run Frontend with docker compose

docker-compose up --build -d

In localhost, frontend service will be started at 5173 port