A simple Node.js + Express + EJS application to create, store, and view text files from your browser. It uses the local filesystem to save and read .txt files.
- Create text files with a title and content.
- View a list of all stored files.
- Open and read the contents of any file.
- Edit and update existing files.
- Simple UI using EJS templates.
- files/ β Stores all text files.
- public/ β Static assets (CSS, JS, images).
- views/ β EJS templates (
index.ejs,show.ejs). - app.js β Main Express app.
- package.json β Project dependencies.
- Clone the repo:
git clone https://github.com/Akash972004/NoteShelf.git cd fileboard
Install dependencies: npm install mkdir files node app.js π Routes GET / β List all files.
GET /file/:filename β View file content.
GET /edit/:filename β Load file in edit mode.
POST /create β Create a new file.
POST /update/:filename β Save changes to an existing file. π¦ Dependencies express ejs path fs