https://github.com/balamurugan-annadurai/nodejs-filesystem
It provides endpoints to create new text files and retrieve existing ones from the TimeStamp directory
https://github.com/balamurugan-annadurai/nodejs-filesystem
backend express nodejs
Last synced: 2 months ago
JSON representation
It provides endpoints to create new text files and retrieve existing ones from the TimeStamp directory
- Host: GitHub
- URL: https://github.com/balamurugan-annadurai/nodejs-filesystem
- Owner: balamurugan-annadurai
- Created: 2024-07-21T14:48:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-21T17:44:13.000Z (almost 2 years ago)
- Last Synced: 2025-01-16T00:23:03.183Z (over 1 year ago)
- Topics: backend, express, nodejs
- Language: JavaScript
- Homepage: https://nodejs-filesystem-azyl.onrender.com
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📁 Text File Management API
Manage text files with timestamps using this Node.js application built with Express.
## 🚀 Overview
This application provides endpoints to create text files with current timestamps and retrieve a list of all existing text files stored in the `TimeStamp` directory.
## 🔗 Endpoints
### Root
- **GET `/`**
- Provides information about available endpoints.
- **Example response:**
```json
{
"End point to create a text file": "/createfile",
"End point to retrieve all text files": "/showfiles"
}
```
### Create Text File
- **GET `/createfile`**
- Creates a text file in the `TimeStamp` folder with the current timestamp as the filename.
- **Example response:**
```json
{
"msg": "Text file added",
"fileContent": "dd-MM-yyyy-HH-mm-ss",
"fileName": "dd-MM-yyyy-HH-mm-ss"
}
```
### Show All Text Files
- **GET `/showfiles`**
- Retrieves a list of all text file names from the `TimeStamp` folder.
- **Example response:**
```json
[
"dd-MM-yyyy-HH-mm-ss.txt",
"dd-MM-yyyy-HH-mm-ss.txt",
"dd-MM-yyyy-HH-mm-ss.txt"
]
```
## 📝 Postman Documentation
Explore and test the endpoints using [Postman](https://documenter.getpostman.com/view/36385012/2sA3kUHNdD).
## 🤝 Connect with Me
💼 **LinkedIn:** [Balamurugan A](https://www.linkedin.com/in/balamurugan-a/)