Routes and How To Create Them

In this lesson, we'll learn how to define routes within AdonisJS and how those routes work.

Published
Jan 24
Duration
5m 24s

Developer, dog lover, and burrito eater. Currently teaching AdonisJS, a fully featured NodeJS framework, and running Adocasts where I post new lessons weekly. Professionally, I work with JavaScript, .Net C#, and SQL Server.

Adocasts

Burlington, KY

Join The Discussion! (6 Comments)

Please sign in or sign up for free to join in on the dicussion.

  1. Commented 4 months ago

    Question, why I encountered error when I tried to make a request from REST Client or curl?

    GET http://localhost:3333/movies http/1.1

    It said,

    The connection was rejected. Either the requested service isn’t running on the requested server/port, the proxy settings in vscode are misconfigured, or a firewall is blocking requests. Details: RequestError: connect ECONNREFUSED 127.0.0.1:3333.

    1

    Please sign in or sign up for free to reply

    1. Commented 4 months ago

      Hey Fadli! Are you using WSL by chance? If so, try giving ::1 in place of http://localhost:3333 a shot. So, I think it'd be ::1:3333/movies. You can also try enabling mirroring mode in WSL, noted here:

      https://learn.microsoft.com/en-us/windows/wsl/networking#mirrored-mode-networking

      1

      Please sign in or sign up for free to reply

  2. Commented 18 days ago

    which extension do you use for that autocomplete on vscode? It looks neat.

    1

    Please sign in or sign up for free to reply

    1. Commented 17 days ago

      Hey Chanbroset-Prach! I believe that should just be the default IntelliSense which comes with VSCode.

      1

      Please sign in or sign up for free to reply

      1. Commented 13 days ago

        I installed IntelliSense as well but the suggestion when typing function is not much descriptive like yours when you hovering each method, you can see the description….

        Ref: https://imgur.com/K5Kt6Ox

        TODO
        0

        Please sign in or sign up for free to reply

        1. Commented 7 days ago

          I believe that panel is called the "quick panel" in Intellisense. You may want to check through your VSCode User JSON settings to see if it may be disabled for you. You can find more info here:

          https://code.visualstudio.com/docs/editor/intellisense#_customizing-intellisense

          0

          Please sign in or sign up for free to reply

Playing Next Lesson In
seconds