On October 20, 2025, I built my first RESTful API with Node.js and Express. Here's my journey as a beginner!
The Task
Create a GET /me endpoint with:
- Profile:
[email protected],Victor Osaikhuiwuomwan,Node.js/Express
- Dynamic UTC timestamp
- Random cat fact from https://catfact.ninja/fact
My Process
Setup: Installed Node.js, VS Code, and rannpm init -y.
Coding: Built an Express server with Axios.
Debugging: FixedSyntaxError: Unexpected token '('and Git errorpathspec 'README.md'.
Testing: Tested withpostman http://localhost:3000/me.
GitHub: Added.gitignoreandREADME.md, pushed to GitHub.
Deployment: Deployed on Railway.
Documentation: UpdatedREADME.mdin VS Code and wrote this post.
Challenges and Lessons
Challenge: Git errorpathspec 'README.md' did not match any files.
Lesson: Usepwdanddirto verify directory and files.
Challenge: Syntax error in code.
Lesson: Objects usekey: valuepairs.
Try It Out!
Live Demo: profile-api-production-94d0.up.railway.app
GitHub Repo: https://github.com//profile-api/victorion0
Screenshots
What’s Next?
I want to explore databases or more endpoints. Tips?