Build a Faster, More Structured Express API with Node.js and TypeScript
51mIntermediate2023-12-12
Authors

Dakota Fabro
Course details
JavaScript is not going anywhere, but TypeScript is being used more and more in larger, production level projects. Being able to understand and use TypeScript in a backend environment will be useful for those who are interested in upgrading their largest JavaScript projects. In this course, software engineer Dakota Fabro teaches you how to: configure a project for TypeScript; configure a database connection for use with the API; build a seed file for the development process; build an Express server utilizing TypeScript; use Jest to test your API endpoints; host your API as a web service using Render; and write a proper README to explain and describe API routes for frontend developers.
Skills covered
TypeScriptJavaScript FrameworksAPIsWeb DevelopmentProgramming LanguagesOpen SourceSoftware DevelopmentOne-Off
Concepts
0. Introduction
- 01 - Build an API
- 02 - What you should know
1. Welcome to Your API
- 03 - TSConfig
- 04 - Setting up a MongoDB database
- 05 - Connect MongoDB to a Node.js app
- 06 - Challenge - Add data to MongoDB
- 07 - Solution - Add data to MongoDB
2. Plant the Seed and Watch It Grow
- 08 - Build a starter seed for MongoDB
- 09 - GET api item all items
- 10 - GET api item - specific item
- 11 - Challenge - Test your API route
- 12 - Solution - Test your API route
3. Jest In Case
- 13 - Anatomy of a Jest test
- 14 - Write your first Jest tests
- 15 - Challenge - Goodbye console.log(), hello Jest
- 16 - Solution - Goodbye console.log(), hello Jest
4. Let 'em Know
- 17 - The purpose of a README
- 18 - Challenge - Create a README
- 19 - Solution - Create a README
5. Hostess with the Mostess
- 20 - Host your API on Render
- 21 - Challenge - Try out your live API
- 22 - Solution - Try out your live API
Conclusion
- 23 - Continue building your API