Articles:

Deploying an API

🏠 Blog Home

May 19, 2025

API technologies

I deployed my first API this past week, and it was an amazing experience. It was easier than I had expected. Using GitHub as my repository and Heroku as my deployment platform, I deployed my API in just a few minutes. It connected to my database, and I was able to test CRUD operations using Postman.

To take it a step further, I created a simple front end using Vite-Reactjs and connected it to my API. I had to tweak my package.json file to accommodate Vite and change the build directory from build to dir. Also, the wildcard for app.get() has changed from "/*" to /{*splat}. I learned that last month when I built my first API. It wasn’t too difficult to figure things out for this deployment, since there was good documentation on the Mongoose, Express, and Heroku websites.