O'Reilly logo

TypeScript Blueprints by Ivo Gabe de Wolff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing the API

We can start the server by running the following command:

gulp && node --harmony_destructuring dist/server

In a web browser, you can open localhost:8800/api/login?username=lorem&password=ipsum to test the code. You can change the parameters to test how a wrong username or password behaves.

For debugging, you can add console.log("..."); calls in your code.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required