Git Product home page Git Product logo

lomapes05a_production's Introduction

github_franciscocoya_banner_readme

Profile Views

馃寪 Socials:

LinkedIn

馃捇 Tech Stack:

Java JavaScript PHP Firebase Next JS NodeJS SASS Spring Vue.js MongoDB MySQL Postgres Figma

馃殌 GitHub Stats:

Anurag's GitHub stats-Dark

Ashutosh's github activity graph

lomapes05a_production's People

Contributors

franciscocoya avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

miguelglez8

lomapes05a_production's Issues

build (info): Cambios realizados en el proyecto para el despliegue

Importante

Para poder desplegar correctamente la aplicaci贸n, se ha creado este repositorio, a partir del repositorio original: https://github.com/Arquisoft/lomap_es5a. Este repositorio contiene ciertas modificaciones que es importante tener en cuenta:

  1. Nuevo fichero para el workflow del depliegue. Denominado ci_production.yml

  2. webapp/package.json

    • Par谩metro homepage:

      "homepage": "https://franciscocoya.github.io/lomapes05a_production/"
    • Scripts. A帽adido un nuevo script, para deplegar en gh-pages de forma manual. Al utilizar el workflow, no es necesario, pero es recomendable tenerlo presente.

     "deploy": "gh-pages -d build"

  3. Cambio de la url base de la aplicaci贸n de http://localhost:3000 a la url de producci贸n. Para ello, se han modificado los siguiente ficheros:

  • webapp/src/routes/index.ts: Sobre las l铆neas 2-3.
const BASE_PATH = "https://franciscocoya.github.io/lomapes05a_production/";
  • webapp/src/index.tsx. Agregando la prop basename a BrowseRouter de react-router-dom: Sobre la l铆nea 8
const app = (
  <SessionProvider sessionId="lomap-solid-ssid">
    <BrowserRouter basename="/lomapes05a_production">
      <App />
    </BrowserRouter>
  </SessionProvider>
);
  • webapp/src/components/menus/IconMenuItem.tsx:
  const handleRedirect = async (e: any) => {
    if (name === "Cerrar sesi贸n") {
      e.preventDefault();
      sessionStorage.clear();
      await session.logout().then(() => {
        window.location.href = BASE_PATH;
      });
    }
    navigate(url ?? "#");
  };
  • webapp/src/components/asides/accountAside/TopAccountAside.tsx:
  const handleRedirect = async (e: any) => {
    if (name === "Cerrar sesi贸n") {
      e.preventDefault();
      sessionStorage.clear();
      await session.logout().then(() => {
        window.location.href = BASE_PATH;
      });
    }
    navigate(url ?? "#");
  };

Nota

Se han eliminado los ficheros y comandos realizacionados con el linter eslint para facilitar el worflow.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    馃枛 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 馃搳馃搱馃帀

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google 鉂わ笍 Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.