A simple file management system built with Node.js and Express that allows users to create, view, and manage text files through a web interface.
- Create new text files
- View list of all files
- Read file contents
- Simple and intuitive web interface
- Node.js (v12 or higher)
- npm (Node Package Manager)
- Clone the repository:
git clone <your-repository-url>
cd second
- Install dependencies:
npm install
- Start the server:
node index.js
- Open your web browser and navigate to:
http://localhost:3000
├── files/ # Directory for storing text files
├── public/ # Static files (CSS, client-side JS)
├── views/ # EJS templates
├── index.js # Main application file
└── package.json # Project dependencies and scripts
- Node.js
- Express.js
- EJS (Embedded JavaScript templating)
- File System (fs) module
GET /
- Display list of all filesPOST /create
- Create a new text fileGET /file/:filename
- View contents of a specific file
ISC
[Your Name]