Skip to content

a2rp/express-project-01-hello-world-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-project-01-hello-world-api

A simple Express.js backend project that returns a JSON response from the root route.

Project Goal

This project is the first step in learning Express.js backend development.
It focuses on:

  • setting up an Express server
  • creating a basic route
  • returning a JSON response
  • running the server locally

Tech Stack

  • Node.js
  • Express.js

Project Structure

express-project-01-hello-world-api
│
├─ node_modules
├─ .gitignore
├─ index.js
├─ package.json
├─ package-lock.json
└─ README.md

Installation

Clone the repository

git clone https://github.com/a2rp/express-project-01-hello-world-api.git
cd express-project-01-hello-world-api

Install dependencies

npm install

Run the Project

node index.js

Server will run at

http://localhost:1198

API Endpoint

GET /

Returns a JSON response

{
    "message": "Hello World from Express.js API"
}

Learning Outcome

By building this project you learn how to

  • initialize an Express application
  • create a server
  • define a route
  • send JSON responses

Author

Ashish Ranjan

Follow me

About

Simple Express.js backend API returning a Hello World JSON response.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors