This is a full-stack MERN (MongoDB, Express, React, Node.js) blog application that allows users to create, read, update, and delete blog posts.
- User authentication: Users can sign up, log in, and log out.
- Create blog posts: Users can write and publish new blog posts.
- View blog posts: Users can browse and read published blog posts.
- Update blog posts: Users can edit and update their own blog posts.
- Delete blog posts: Users can delete their own blog posts.
- MongoDB: A NoSQL database for storing blog posts and user data.
- Express: A web application framework for handling HTTP requests and routes.
- React: A JavaScript library for building user interfaces.
- Node.js: A JavaScript runtime environment for running server-side code.
-
Clone the repository:
git clone https://github.com/uzo-felix/blog-App.git
-
Navigate to the project directory:
cd blog-App
- Install the dependencies:
npm install
- Set up environment variables:
Create a .env file in the root directory and configure the following variables:
MONGODB_URI=your-mongodb-connection-string
SECRET_KEY=your-secret-key
- Run the application:
npm start
The app should now be running on http://localhost:3000/.
There are two folders Api and client, install dependencies on both
Contributions are welcome! If you find any bugs or have suggestions for improvements, please feel free to open an issue or submit a pull request.