https://github.com/sujoyghoshal/testing
This repository contains an Express.js RESTful API that serves data from a JSON file. Deployed on an AWS EC2 instance, the API provides endpoints to retrieve all records (GET /all) or a specific record by id (GET /all/:id). The application handles basic errors related to file operations and is designed for easy data access.
https://github.com/sujoyghoshal/testing
api git testing vercel-deployment
Last synced: 2 months ago
JSON representation
This repository contains an Express.js RESTful API that serves data from a JSON file. Deployed on an AWS EC2 instance, the API provides endpoints to retrieve all records (GET /all) or a specific record by id (GET /all/:id). The application handles basic errors related to file operations and is designed for easy data access.
- Host: GitHub
- URL: https://github.com/sujoyghoshal/testing
- Owner: sujoyghoshal
- Created: 2024-08-03T13:46:58.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-03T14:09:52.000Z (almost 2 years ago)
- Last Synced: 2025-03-27T14:25:19.793Z (over 1 year ago)
- Topics: api, git, testing, vercel-deployment
- Language: JavaScript
- Homepage: https://testing-jade-rho.vercel.app
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API Project
This repository contains a RESTful API built with Express.js and deployed on Vercel. The API provides endpoints to interact with data stored in a JSON file.
## Features
- **Endpoints:**
- `GET /` - Returns a message indicating that the API is up and running.
- `GET /all` - Retrieves all records from the data file.
- `GET /all/:id` - Retrieves a specific record by `id` from the data file.
- **Data Storage:** Data is stored in a JSON file located in the `vercel` directory.
- **Deployment:** The API is deployed on Vercel. You can access the live API at [https://testing-topaz-phi.vercel.app/](https://testing-topaz-phi.vercel.app/).
## Getting Started
To run this project locally:
1. **Clone the Repository:**
```bash
git clone https://github.com/your-username/your-repo.git
cd your-repo