This is a simple CRUD (Create, Read, Update, Delete) blog application built using Node.js, Express, EJS (Embedded JavaScript), and MongoDB. It allows users to create, view, update, and delete blog posts.
- Create, Read, Update, and Delete blog posts.
- User-friendly interface.
- Secure authentication using JSON Web Tokens (JWT).
- Node.js
- Express.js
- EJS (Embedded JavaScript)
- MongoDB
- Node.js installed on your machine.
- MongoDB Free Cluster or a locally running MongoDB instance.
- Create a
.env
file to store your credentials. Example below: MONGODB_URI=mongodb+srv://:@clusterName.xxxxxxx.mongodb.net/blog JWT_SECRET=MySecretBlog
To install and run this project:
- Clone this repository to your local machine.
- Navigate to the project directory.
- Install dependencies using npm:
$ npm install
To start the server, run:
$ npm run dev
Access the blog application by visiting http://localhost:3000
in your web browser.