A minimal Express.js backend server demonstrating basic routing and a health check endpoint.
This project is part of a backend foundations series where each repository focuses on solving one specific backend concept.
- Basic Express server setup
- Root endpoint
/ - Health check endpoint
/health - Environment based port configuration
- Simple JSON responses
- Node.js
- Express.js
## Clone the repository
git clone https://github.com/a2rp/express-basic-server.git
## Go to project directory
cd express-basic-server
## Install dependencies
npm install
## Running the server
Development mode
## Production mode
npm startGET /
{
"message": "Express Basic Server Running",
"status": "success"
}This repository demonstrates the foundation of an Express.js backend server. It serves as the starting point for building scalable backend applications.
Ashish Ranjan https://www.ashishranjan.net
- Portfolio: https://www.ashishranjan.net
- GitHub: https://github.com/a2rp
- CodePen: https://codepen.io/ash1198
- LinkedIn: https://www.linkedin.com/in/aashishranjan
- Facebook: https://www.facebook.com/theash.ashish/
- YouTube: https://www.youtube.com/@ashishranjan-ashz?sub_confirmation=1
- Email: ash.ranjan09@gmail.com
- Support: https://a2rp-donation-page.netlify.app/
- Buy Me A Coffee: https://buymeacoffee.com/a2rp
- Patreon: https://patreon.com/a2rp