On October 20, 2025, I built my first RESTful API with Node.js and Express. Here's my journey!
The Task
Create a GET /me
endpoint with:
- Profile:
victorosaikh@gmail.com
,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 ran
npm init -y
. - Coding: Built an Express server with Axios for cat facts.
-
Debugging: Fixed
SyntaxError: Unexpected token '('
and Git branch mismatch (master
vsmain
). -
Testing: Tested with
curl http://localhost:3000/me
. -
GitHub: Added
.gitignore
,README.md
, and pushed tomain
branch. - Deployment: Deployed on Railway.
-
Documentation: Fixed missing
README.md
issue and wrote this post.
Challenges and Lessons
-
Challenge: Git branch mismatch (
master
vsmain
). -
Lesson: Align local and remote branches with
git branch -m
. -
Challenge: Missing
README.md
in GitHub. - Lesson: Verify commits and pushes to the correct branch.
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?
Top comments (1)
Hello. Wonderful article!
I think you are a funny developer. I want to keep to touch with you continuously.
This is my whatsapp.
+1 (279) 262-5585
Have a good day.