This is a full-stack blog website where users can register, log in, create and read blogs, search for blogs by keywords, and filter them by categories.
- Authentication & Authorization: Users can register and log in to their accounts securely.
- Create Blogs: Authenticated users can create new blogs.
- Read Blogs: Both registered and guest users can read blogs.
- Filter Blogs by Categories: Users can filter blogs based on categories.
- Search Blogs: Blogs can be searched by keywords from their titles.
To run this project locally, follow the steps below:
-
Navigate to the
client
directory:cd client
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
The client will run on http://localhost:5173
.
-
Navigate to the
api
directory:cd api
-
Install dependencies:
npm install
-
Start the API server:
node index.js
- Frontend: React
- Backend: Node.js, Express.js
- Database: MongoDB
- Authentication: JSON Web Token (JWT)
- Styling: Tailwind CSS / CSS