Git Product home page Git Product logo

Comments (10)

edeandrea avatar edeandrea commented on June 16, 2024

When you launched fights, did you use -Dquarkus.profile=no-microcks (see https://github.com/quarkusio/quarkus-super-heroes/tree/main/rest-fights#integration-with-microcks)?

By default if you just to ./mvnw quarkus:dev on rest-fights, it will not talk to heroes/villains and will serve "canned" responses.

from quarkus-super-heroes.

psirdev avatar psirdev commented on June 16, 2024

When you launched fights, did you use -Dquarkus.profile=no-microcks (see https://github.com/quarkusio/quarkus-super-heroes/tree/main/rest-fights#integration-with-microcks)?

By default if you just to ./mvnw quarkus:dev on rest-fights, it will not talk to heroes/villains and will serve "canned" responses.

Very fast response Eric, wow!

I tried that, works the same, but the UI just points to the microcks endpoint. Maybe I need to change the UI endpoint and do a research in the READMEs before doing some testing.

It's not the topic of this issue, but... any video or tutorial for the Super Heroes repo?

Thanks!

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on June 16, 2024

I just started all the apps manually

  • In grpc-locations: ./mvnw clean quarkus:dev
  • In rest-villains: ./mvnw clean quarkus:dev
  • In rest-heroes: ./mvnw clean quarkus:dev
  • In rest-fights: ./mvnw clean quarkus:dev -Dquarkus.profile=no-microcks
  • In ui-super-heroes: ./mvnw clean quarkus:dev -Dquarkus.profile=no-microcks

And when I bring up the UI (http://localhost:8080) everything seems to work fine. No CORS issues.

Can you tell me a little bit more about how you are running the UI? Are you doing a docker run? Or are you starting via ./mvnw quarkus:dev?

It's not the topic of this issue, but... any video or tutorial for the Super Heroes repo?

There are a few resources...

There is also the repo's main README file, as well as the README files of all the individual applications.

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on June 16, 2024

Actually you know what - when I start up the UI with just ./mvnw clean quarkus:dev and when I do a FIGHT, I do see the CORS issue...

I've created microcks/microcks-quarkus#22 for some guidance.

from quarkus-super-heroes.

psirdev avatar psirdev commented on June 16, 2024

I just started all the apps manually

  • In grpc-locations: ./mvnw clean quarkus:dev
  • In rest-villains: ./mvnw clean quarkus:dev
  • In rest-heroes: ./mvnw clean quarkus:dev
  • In rest-fights: ./mvnw clean quarkus:dev -Dquarkus.profile=no-microcks
  • In ui-super-heroes: ./mvnw clean quarkus:dev -Dquarkus.profile=no-microcks

And when I bring up the UI (http://localhost:8080) everything seems to work fine. No CORS issues.

Can you tell me a little bit more about how you are running the UI? Are you doing a docker run? Or are you starting via ./mvnw quarkus:dev?

It's not the topic of this issue, but... any video or tutorial for the Super Heroes repo?

There are a few resources...

There is also the repo's main README file, as well as the README files of all the individual applications.

Just missed the -Dquarkus.profile=no-microcks parameter on ui-super-heroes and rest-fights. Now works perfectly. No cors problem and #686 problem disappear. Does the order of execution matter?

Maybe too much desire on running quarkus perfectly without reading READMEs 🤣

(I need to check grpc-locations, I know)

image

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on June 16, 2024

Does the order of execution matter?

No it doesn't.

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on June 16, 2024

Actually you know what - when I start up the UI with just ./mvnw clean quarkus:dev and when I do a FIGHT, I do see the CORS issue...

I've created microcks/microcks-quarkus#22 for some guidance.

from quarkus-super-heroes.

psirdev avatar psirdev commented on June 16, 2024

Actually you know what - when I start up the UI with just ./mvnw clean quarkus:dev and when I do a FIGHT, I do see the CORS issue...

I've created microcks/microcks-quarkus#22 for some guidance.

Great! I'm going to continue without microcks for the moment.

If you wanna close or continue this issue, your choice. Thanks!

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on June 16, 2024

I'll keep it open for now until I get feedback on the issue I created in microcks.

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on June 16, 2024

@psirdev FYI the issue has been fixed by microcks/microcks-quarkus#22

from quarkus-super-heroes.

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.