A Basic blog application which uses ExpressJS, NodeJS, ReactJS with CRA and MongoDB for data storage.
Welcome to my first MERN stack project! I am uploading this lately but this is the first ever project that I created using MERN Stack in my highschool. This basic blog application allows users to create accounts, log in using JWT tokens, create blog posts with thumbnail picture uploads, and view posts on the home page.
- MongoDB: Database for storing user information and blog posts.
- Express.js: Backend framework for handling server-side logic.
- React.js: Frontend library for building user interfaces.
- Node.js: JavaScript runtime for executing server-side code.
- JWT (JSON Web Tokens): Used for user authentication and authorization.
Make sure you have the following installed:
- Node.js: Download Node.js
- MongoDB: Install MongoDB
-
Clone the repository:
git clone https://github.com/ishanjarwal/basic-blog-app.git
-
Install the dependencies :
cd client npm install cd api npm install
-
Create a .env file
MONGO_URI="Your mongo atlas/local database url with password" JWT_SECRET="Your JWT Secret (can be anything)"
-
Run the project
- Run the server
npm start
- Run the React Server
npm run dev
And you are good to go. Happy Coding 👍