A simple full-stack web application that allows users to enter their name and receive a personalized greeting. The backend is built with Node.js and Express, while the frontend is developed using React and Vite.
✅ Simple Express API to generate a greeting message
✅ Frontend with an input field and button to fetch the greeting
✅ Responsive and modern UI
- Backend: Node.js, Express
- Frontend: React, Vite, CSS
Ensure you have Node.js and npm/yarn installed on your system.
git clone https://github.com/YashInTech/greeting-app.git
cd greeting-app
cd backend
npm install
node server.js # Runs the Express server on port 10000
cd frontend
npm install
npm run dev # Runs the React app (Vite) on port 5173
- Open the frontend in your browser (
http://localhost:5173
). - Enter your name in the input field.
- Click the Get Greeting button or press Enter.
- The greeting message will appear dynamically.
{
"message": "Hello, YourName! Welcome to Younglabs."
}
{
"error": "Name is required."
}
This project is open-source under the MIT License.