Giter Site home page Giter Site logo

Comments (3)

goldbergyoni avatar goldbergyoni commented on June 2, 2024

I've actually inlucded the token within the online POSTMAN docs but just noted that for security reasons it extract out the Authorization header.

I've just included here an _answer to your question, is it satisfactory?

Note that when invoking manually you might hit another wall - the code is approaching 3rd party service (we want to tackle this complexity and show how to test it), since that imaginary service is not available your code will fail. In the automated tests we use a special networking tool, nock, that mocks that service

Visit the file user-service-client.ts and change the URL to any REST service that is available, or just return something hard-coded

p.s. May I ask, which type of app are you building using Practica?

from practica.

surajsharma avatar surajsharma commented on June 2, 2024

@goldbergyoni

I've just included here an _answer to your question, is it satisfactory?

so yes while this token works i wanted to be able to generate my own tokens, or at least know my way around, is there any way this could be achieved?

Visit the file user-service-client.ts and change the URL to any REST service that is available, or just return something hard-coded

ok let me try this

p.s. May I ask, which type of app are you building using Practica?

i am just learning the best practices, not building anything.

from practica.

goldbergyoni avatar goldbergyoni commented on June 2, 2024

@surajsharma The link explains how to generate your own token. If you could feedback what specifically in this text is lacking - we can improve it

from practica.

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.