HNG Internship Stage 1: String Analyzer API
dev.to·13h·
Discuss: DEV
Flag this post

For the second task in the HNG Internship, I had to build a string analysis API. The brief was simple: create a RESTful API that analyses strings, computes their properties, and stores everything in a database. It sounded straightforward at first, but it ended up being a really good exercise in backend logic, data modelling, and thinking through how users might actually query the data.

Getting Started

I went with Node.js and Express for the backend, paired with MongoDB through Mongoose. To keep things flexible, I used dotenv for environment variables and added express-rate-limit to prevent the API from being hammered with too many requests. I kept the string analysis logic modular, which made everything easier to maintain and extend down the line.

Similar Posts

Loading similar posts...