This content originally appeared on DEV Community and was authored by Victor Osaikhuiwuomwan
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:
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.
-
Debugging: Fixed
SyntaxError: Unexpected token '('and Git errorpathspec 'README.md'. -
Testing: Tested with
postman http://localhost:3000/me. -
GitHub: Added
.gitignoreandREADME.md, pushed to GitHub. - Deployment: Deployed on Railway.
-
Documentation: Updated
README.mdin VS Code and wrote this post.
Challenges and Lessons
-
Challenge: Git error
pathspec 'README.md' did not match any files. -
Lesson: Use
pwdanddirto verify directory and files. - Challenge: Syntax error in code.
-
Lesson: Objects use
key: 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?
This content originally appeared on DEV Community and was authored by Victor Osaikhuiwuomwan