Giter Site home page Giter Site logo

Comments (4)

jonrosner avatar jonrosner commented on May 22, 2024

You cannot run Yaade exclusively using NPM. NPM can only build and serve the frontend part (static HTML, CSS, JavaScript). To run Yaade you need to:

a) run it as a docker container
b) build a jar using the build script mentioned in the README
c) run it in development mode

If you go for (b) the script will build the frontend, put the static files into the static folder of the server, build the server, and then output a single jar file that you can run normally.

If you go for step (c), then you need to start up all components manually:

  1. The server by running the jar (this is where you set YAADE_ADMIN_USERNAME=admin)
  2. Frontend by running npm run dev
  3. The dev-proxy to connect frontend and backend and to disable CORS

Now you should be able to go to http://localhost:9337 and login. Note that this should only be used for development.

from yaade.

matt734 avatar matt734 commented on May 22, 2024

You cannot run Yaade exclusively using NPM. NPM can only build and serve the frontend part (static HTML, CSS, JavaScript). To run Yaade you need to:

a) run it as a docker container b) build a jar using the build script mentioned in the README c) run it in development mode

If you go for (b) the script will build the frontend, put the static files into the static folder of the server, build the server, and then output a single jar file that you can run normally.

If you go for step (c), then you need to start up all components manually:

  1. The server by running the jar (this is where you set YAADE_ADMIN_USERNAME=admin)
  2. Frontend by running npm run dev
  3. The dev-proxy to connect frontend and backend and to disable CORS

Now you should be able to go to http://localhost:9337 and login. Note that this should only be used for development.

from yaade.

matt734 avatar matt734 commented on May 22, 2024

I am not sure where I did wrong but I wanted to make some changes in the front end part. I changed the logo on client/src/pages/login/Login.tsx . I am able to see the changes which I made when I run npm run dev but not able to see the changes when I run using the executable jar file

from yaade.

jonrosner avatar jonrosner commented on May 22, 2024

Yes if you actually want to make changes you need to run the three components in dev mode as I explained above.

from yaade.

Related Issues (20)

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.