Skip to content

a2rp/express-project-02-static-response-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-project-02-static-response-api

A simple Express.js backend API that returns static application information.

Project Goal

This project demonstrates how to create a basic Express.js API that returns static data such as application name, version, and status.

Tech Stack

  • Node.js
  • Express.js

Installation

Clone the repository

git clone https://github.com/a2rp/express-project-02-static-response-api.git
cd express-project-02-static-response-api

Install dependencies

npm install

Run the Project

node index.js

Server will run at
http://localhost:1198

API Endpoint

  • GET /info

Returns static application information


Example response

{
    "appName": "Static Response API",
    "version": "1.0.0",
    "status": "running",
    "message": "This API returns static application information."
}

alt text


Learning Outcome

By building this project you learn how to

  • create an Express server
  • define API routes
  • return JSON responses
  • structure a simple backend project

Follow me

Releases

No releases published

Packages

 
 
 

Contributors