Adding TypeScript to the official Apollo Platform Tutorial app

In today's video, I go through the preparation of the official Apollo Platform Tutorial App ( https://github.com/apollographql/fullstack-tutorial ) for adding Chimp to it. I decided to divide that task into two steps - the first is adding TypeScript to the codebase. This way I will be able to demonstrate the process of adding Chimp in a much more concise and understandable way - without spending half of the time on fighting with types.

This is an uncut version of me doing the work - it's a bit smoother than it should be because I've done half of the work before trying to add Chimp and TypeScript at the same time - nonetheless you can see my workflow and learn some tricks :)

Around the 35-minute mark, I had to do a bit of a fight with Generic, I used quokka and quick prototyping to get out of that mess, which can be interesting to watch.

I hope you enjoy it. :-)


Let me know if you have any questions or thoughts in the comments below.


Let us help you on your journey to Quality Faster

We at Xolv.io specialize in helping our clients get more for less. We can get you to the holy grail of continuous deployment where every commit can go to production — and yes, even for large enterprises.

Feel free to schedule a call or send us a message below to see how we can help.

User icon
Envelope icon

or

Schedule a 30m call
  • Add types to your AWS lambda handler

  • How to expose a local service to the internet

    From time to time you might need to expose your locally running service to the external world - for example you might want to test a webhook that calls your service. To speed up the test/development feedback loop it would be great to be able to point that webhook to your local machine.

  • For loops in JavaScript (vs _.times)

    From time to time I still see a for loop in JavaScript codebases. Linters are frequently angry about them. Let's see how we can replace them.