How I built and deployed 22 production APIs in a few months using TypeScript, Express and Render
Posted by Cpaguy1151@reddit | learnprogramming | View on Reddit | 3 comments
I wanted to share my build process in case it's useful for anyone learning to ship production APIs.
Over the past few months I built a portfolio of 29 live APIs for trading bots and AI agents. Here's the exact stack and process I used:
Stack:
- TypeScript + Express
- ts-node-dev for development
- Render free tier for hosting
- Claude AI for reasoning layers
- OrbisAPI for distribution and monetization
Build pattern I follow every time:
- Create GitHub repo with description
- Open Codespace
- Write one
setup.shheredoc script that creates all files - Run
bashsetup.sh npm install && npm run dev- Test with curl
- Commit, deploy to Render
- List on OrbisAPI
Every API has the same structure:
src/
routes/ — express routers
services/ — business logic
middleware/ — logger, rate limiter
types/ — TypeScript interfaces
Things I learned:
- Never use pino-pretty in Codespaces — it causes hanging. Use plain console.log
- Always use
node dist/index.jsas start command, not ts-node - render.yaml makes deployment repeatable
- Joi for validation saves a lot of error handling boilerplate
Happy to share any specific files or answer questions about the setup.
ResourceOgre@reddit
I retired in 2019. This reads like Japanese. Like, I catch the words that I recognise from Anime, but it dissolves into gabble. Which is on me.
OP, thanks on behalf of people capable of understanding, it looks like you tried to make it clear.
I feel oooooold.
Sad-Selection-4169@reddit
nice setup, i use similar pattern but never tried render free tier for hosting, how's the cold start times on your apis?
Cpaguy1151@reddit (OP)
I updated to the $7/month plan which keeps them on. Free is like 30 to 60 seconds after inactivity