A lightweight CMS built with Express.js and Tailwind CSS, allowing users to create, read, append, rename, copy, and delete text files via a clean and responsive web interface.
- π File Operations: Create, read, append, rename, copy, and delete
.txtfiles. - π± Responsive Design: Built with Tailwind CSS, optimized for mobile and desktop.
- π Local File Storage: All files are saved inside the
content/directory. - π¨ Animated Background: Starry animated canvas background adds a visual touch.
- π» Server-Side Logic: All backend file handling is managed through
server.jsusing Express.js. - π File System Module: Utilizes Node.js
fsandfs/promisesmodules for asynchronous file operations.
- Node.js (v18 or later)
- npm (v9 or later)
git clone https://github.com/PranavHendre02/Content-Management-System.git
cd Content-Management-System
npm install
mkdir content
npm run build:cssnpm start- Visit:
http://localhost:3000 - Use the UI to create/read/delete
.txtfiles. - Toggle light/dark theme via navbar.
- Local Environment: Files are saved in
/content/folder.
Content-Management-System/
βββ content/ # Stores text files
βββ public/
β βββ css/
β β βββ output.css # Tailwind CSS build
β βββ index.html # UI frontend
β βββ script.js # Client-side JavaScript
βββ src/
β βββ input.css # Tailwind source CSS
βββ server.js # Express backend logic for file operations
βββ package.json
βββ tailwind.config.js
βββ .gitignore
- express - Web server
- tailwindcss - Utility-first CSS framework
- fs / fs.promises - Node.js built-in modules for file system operations
- Switch between light (
bg-gray-100 text-gray-900) and dark (bg-gray-950 text-white) modes. - State is saved in
localStorage. - Uses Tailwind's
dark:variant classes.
-
CSS Not Showing? Run:
npm run build:css
-
Theme Toggle Fails? Ensure
tailwind.config.jshas:darkMode: 'class' -
Express Errors? Run:
npm install
MIT License
Developed by Pranav Hendre π

