https://github.com/kuzhalikumaraguru/nodeday1
File system - Create files with current date and time and retrieve all the text files by creating API endpoint
https://github.com/kuzhalikumaraguru/nodeday1
express filesystem http nodejs readfilesync server writefilesync
Last synced: 3 months ago
JSON representation
File system - Create files with current date and time and retrieve all the text files by creating API endpoint
- Host: GitHub
- URL: https://github.com/kuzhalikumaraguru/nodeday1
- Owner: kuzhalikumaraguru
- Created: 2024-01-24T17:15:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-25T09:52:27.000Z (over 1 year ago)
- Last Synced: 2024-04-23T09:35:42.159Z (about 1 year ago)
- Topics: express, filesystem, http, nodejs, readfilesync, server, writefilesync
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
1. API endpoint to create a text file in a particular folder - used post method and writeFileSync
2. Content of the file will be the current timestamp
3. API endpoint to retrieve the text file in a particular folder - used get method and readFileSync1. Used express and node js file system
2. I have created file name with only date string along with random text to differentiate the file names
3. And current date & time file name is creating an issue so i have created with only date string.