https://github.com/yashintech/greeting-app
https://github.com/yashintech/greeting-app
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yashintech/greeting-app
- Owner: YashInTech
- License: mit
- Created: 2025-03-07T09:41:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-07T09:59:57.000Z (over 1 year ago)
- Last Synced: 2025-03-07T10:30:31.267Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://greeting-app-pied.vercel.app
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Greeting App
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.
## Features
✅ Simple Express API to generate a greeting message
✅ Frontend with an input field and button to fetch the greeting
✅ Responsive and modern UI
## Tech Stack
- **Backend:** Node.js, Express
- **Frontend:** React, Vite, CSS
## Installation & Setup
### Prerequisites
Ensure you have **Node.js** and **npm/yarn** installed on your system.
### Clone the Repository
```sh
git clone https://github.com/YashInTech/greeting-app.git
cd greeting-app
```
### Backend Setup
```sh
cd backend
npm install
node server.js # Runs the Express server on port 10000
```
### Frontend Setup
```sh
cd frontend
npm install
npm run dev # Runs the React app (Vite) on port 5173
```
## Usage
1. Open the frontend in your browser (`http://localhost:5173`).
2. Enter your name in the input field.
3. Click the **Get Greeting** button or press **Enter**.
4. The greeting message will appear dynamically.
## API Endpoint
### `GET /api/greet?name=YourName`
#### Response:
```json
{
"message": "Hello, YourName! Welcome to Younglabs."
}
```
#### Error Handling:
```json
{
"error": "Name is required."
}
```
## License
This project is open-source under the [MIT License](LICENSE).
---