Welcome to the Blogger App, a simple and intuitive blogging platform built using the MEAN Stack (MongoDB, Express, Angular, and Node.js) and adhering to the MVC (Model-View-Controller) architecture. This application allows users to manage blog posts and interact through likes.
Before using the application, ensure the following are installed and configured on your system:
-
Install Node.js and npm (Node Package Manager):
Node.js is required to run the application, and npm is used to manage dependencies. -
Install MongoDB:
MongoDB is the database system used for this application. Follow the link for installation instructions. -
Create a Database in MongoDB:
After installing MongoDB, follow these steps to create the required database:- Open your terminal and run
mongoshto access the MongoDB shell. - Switch to your desired database (replace
<DB>with the name of your database):use <DB>
- Create a user for the database with the following command:
This creates a user named
db.createUser({ user: "blogger", pwd: "coolBlogger", roles: ["dbOwner"] })
bloggerwith the passwordcoolBloggerand assigns thedbOwnerrole.
- Open your terminal and run
git clone https://github.com/Jordan130/MEAN-Project.git cd MEAN-Project npm install- Create a
.envfile in the root directory and update it with your MongoDB URI and any other configurations you might need:
DB_URI=mongodb://<username>:<password>@localhost/<DB>
JWT_SECRET=your_secure_secret_key_here- Replace
<username>,<password>, and<DB>with your actual MongoDB credentials and database name. - The
JWT_SECRETshould be a secure, unique string.
npm start- Open your browser and go to
http://localhost:80to access the application. - Log in or register to start managing blog posts!