r/learnjavascript • u/Comrade0gilvy • Feb 19 '26
A beginner-friendly Express API scaffolder
Hello all,
I'm about halfway through a software development bootcamp in the UK and this week we had to set up and deploy an Express API (Postgres, tests, middleware, error handling, etc).
Being a bit lazy, I wanted a shortcut, and so I searched GitHub and npm for a repo or tool to speed things up. I was surprised when I couldn't find anything that aligned with the project's initial requirements (a fairly standard bootcamp Express API).
The top search results were either outdated (some even still using var!), far too complex, or full of setup friction. I just wanted a beginner-friendly foundation that covered the important parts without doing everything for you, and left lots of room for learning about Express APIs.
So I thought I’d have a go at building one instead, and it became this npm package:
npm create @alexmc2/express-api-starter@latest my-api
Publishing this was a massive learning curve. The most interesting takeaway for me was getting to grips with semantic versioning. It's a bit of a strange feeling to realise I suddenly can't just fix a simple typo in a README without having to publish a whole new patch version!
The tool supports:
- JS or TS
- Simple structure or MVC
- Optional Postgres + Docker
- A pre-configured test suite that passes out of the box
- Optional comments explaining the purpose of files and functions
It doesn't generate a 'production ready' server, but I’m hoping it might be useful for other beginners learning Express, or at least make a nice CV project!
I’d really welcome any feedback on how it could be improved in future versions, or if I’ve inadvertently made any massive mistakes in the process of building this.
Cheers!
View all comments
Show parent comment
2
u/Comrade0gilvy Feb 20 '26
Thanks for your reply and lovely words! A yarn installer is a good idea - I'll definitely add this in the next update.
Yes, AI was used a lot in making this! Although I do understand the code and have done some manual edits myself where needed. If I was asked in a job interview to walk through the codebase and describe the challenges, I think it would be ok. Provided I don't get too nervous and forget what a function even is 😅
The bootcamp I'm on is quite unique - it's government funded and designed for developers who already know how to code but are struggling to find employment. So there's a heavy emphasis on the careers side and how to make yourself attractive to potential employers. The range of skill in the cohort is quite big, and some of us are covering old ground. Which is great because it allows for fun side projects like this one. But your point about understanding the code is extremely valid and a reminder not to get too carried away with projects that are way beyond ability to understand!