This is the frontend part of a MERN stack blog application. The frontend is built using React.js and styled with Tailwind CSS. It provides a user-friendly interface for creating, reading, updating, and deleting blog posts, along with user authentication and a comment system.
- User Authentication: Secure login and registration.
- Blog Management: CRUD (Create, Read, Update, Delete) operations for blog posts.
- Image Upload: Upload and display images for each blog post.
- Comment System: Engage with readers through a built-in commenting feature.
- Responsive Design: Seamless user experience across devices with a fully responsive layout.
- Frontend: React.js
- State Management: Redux
- Styling: Tailwind CSS
- API Integration: Axios
Follow these instructions to set up the project locally.
Ensure you have the following installed on your local machine:
- Node.js
- npm (comes with Node.js)
-
Clone the repository:
git clone https://github.com/Pasindu9225/blog-app-frontend.git cd blog-app-frontend
-
Install the dependencies:
npm install
-
Create a
.env
file in the root directory and add your API base URL:REACT_APP_INTERNAL_API=http://localhost:5000/api
-
Start the development server:
npm start
The app will be available at http://localhost:3000.
src
: Contains the source codeapi
: Axios API callscomponents
: Reusable componentspages
: Application pagesredux
: Redux store and slicesApp.js
: Main application componentindex.js
: Entry point of the application
In the project directory, you can run:
Runs the app in development mode.
Open http://localhost:3000 to view it in the browser.
Launches the test runner in interactive watch mode.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
Note: This is a one-way operation. Once you eject
, you can’t go back!
Contributions are welcome! Please open an issue or submit a pull request if you would like to contribute.
If you have any questions or suggestions, feel free to reach out.
- Email: [email protected]
- GitHub: Pasindu9225