Skip to content

πŸ“ 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.

Notifications You must be signed in to change notification settings

PranavHendre02/Content-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Content Management System (CMS)

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.


πŸš€ Features

  • πŸ“„ File Operations: Create, read, append, rename, copy, and delete .txt files.
  • πŸ“± 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.js using Express.js.
  • πŸ“œ File System Module: Utilizes Node.js fs and fs/promises modules for asynchronous file operations.

πŸ“Έ Screenshots

Content Management System Screenshot 1

Content Management System Screenshot 2


πŸ“¦ Prerequisites

  • Node.js (v18 or later)
  • npm (v9 or later)

πŸ› οΈ Setup

git clone https://github.com/PranavHendre02/Content-Management-System.git
cd Content-Management-System
npm install
mkdir content
npm run build:css

▢️ Running Locally

npm start
  • Visit: http://localhost:3000
  • Use the UI to create/read/delete .txt files.
  • Toggle light/dark theme via navbar.

πŸ“ File Storage Details

  • Local Environment: Files are saved in /content/ folder.

πŸ“‚ File Structure

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

🧹 Dependencies

  • express - Web server
  • tailwindcss - Utility-first CSS framework
  • fs / fs.promises - Node.js built-in modules for file system operations

πŸŒƒ Theme Toggle

  • 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.

πŸ› οΈ Troubleshooting

  • CSS Not Showing? Run:

    npm run build:css
  • Theme Toggle Fails? Ensure tailwind.config.js has:

    darkMode: 'class'
  • Express Errors? Run:

    npm install

πŸͺͺ License

MIT License


πŸ‘¨β€πŸ’» Author

Developed by Pranav Hendre πŸš€

About

πŸ“ 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.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published