-
Article Management
- View all articles
- Create new articles
- Read full article details
- Update existing articles
- Delete articles
-
User Interface
- Responsive design
- Clean and modern layout
- Easy navigation
- Form validation
-
Backend
- Node.js
- Express.js
- MongoDB with Mongoose
- EJS Template Engine
-
Frontend
- CSS3
- Bootstrap
- EJS Templates
articles-nodejs/
├── models/
│ └── Article.js # Article schema and model
├── public/
│ └── css/ # Static CSS files
├── views/
│ ├── layouts/ # Layout templates
│ ├── article.ejs # Single article view
│ ├── edit-article.ejs # Edit article form
│ ├── home.ejs # Homepage view
│ └── new-article.ejs # New article form
├── index.js # Main application file
└── package.json # Project dependencies
- Clone the repository
git clone https://github.com/MoAjabali/articles-nodejs
cd articles-nodejs- Install dependencies
npm install- Set up MongoDB
- Ensure MongoDB is installed and running
- Default connection string: mongodb://127.0.0.1:27017/nodejsdb
- Start the application
npm run devThe application will be available at https://articles-nodejs-8akj.onrender.com
GET / - Home page(displays all articles)GET /articles/new- New article formGET /articles/:id- View specific articleGET /articles/:id/edit- Edit article form
POST /articles/new- Create new articlePOST /articles/:id- Update articlePOST /articles/del/:id- Delete article
{
title: String, // Article title
body: String, // Article content
author: String // Article author
}- User authentication
- Article categories
- Comments system
- Rich text editor
- Image upload support
This project is licensed under the ISC License.
Made with ❤️ using Node.js and Express