A simple Express.js backend API that returns static application information.
This project demonstrates how to create a basic Express.js API that returns static data such as application name, version, and status.
- Node.js
- Express.js
Clone the repository
git clone https://github.com/a2rp/express-project-02-static-response-api.git
cd express-project-02-static-response-apinpm installnode index.js
Server will run at
http://localhost:1198- GET /info
Returns static application information
{
"appName": "Static Response API",
"version": "1.0.0",
"status": "running",
"message": "This API returns static application information."
}By building this project you learn how to
- create an Express server
- define API routes
- return JSON responses
- structure a simple backend project
- GitHub: https://github.com/a2rp
- Portfolio: https://www.ashishranjan.net
- LinkedIn: https://www.linkedin.com/in/aashishranjan
- Facebook: https://www.facebook.com/theash.ashish/
