DEV Community

Cover image for Build a REST API in Node.js
Devon Campbell
Devon Campbell

Posted on • Originally published at raddevon.com on

19 10

Build a REST API in Node.js

Most of the content of this video is standalone, but it's part of a series! You may want to go back and start at the beginning.

In this final video of my Node.js Javascript series, we’ll be building two different HTTP server projects: one that returns a string submitted by the user via POST request transformed into upper case, and a REST API that returns time passed in on a querystring as a JSON object.

Please either enjoy or forgive my lockdown hair, take your pick. 😉

Video Notes

Some of the things you’ll learn:

  • 📖 How to use the Node.js documentation
  • 😖 How to find help using search (Google or my favorite DuckDuckGo) and StackOverflow
  • 🧐 How to write readable, maintainable code
  • 🗣 How to respond to an HTTP request
  • ❓ How to parse a querystring
  • 🛠 How to debug code that doesn’t work
  • 🤝 How to use a third-party library
  • 🕰 Just what the heck is Unix time anyway?

If you missed the rest of the series, you may want to go check out the first episode and get started with Node.js from the beginning!

You might also enjoy my quick 30-minute Vue.js tutorial.

Thanks for watching! If you have any questions, please post them here, in the video comments on YouTube, or email me.

Now that you’ve gone through my final Node beginner tutorial, it’s a great time to put your new knowledge to work. Check out my 10 unique learning project ideas to get started.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more →

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more