This is a dummy blog post timeline page focusing on React best practices and structure. The project is built with React, TypeScript, React Query, and Tailwind CSS.
- React: A JavaScript library for building user interfaces.
- TypeScript: A typed superset of JavaScript that compiles to plain JavaScript.
- React Query: A data-fetching library for React.
- Axios: A promise-based HTTP client for the browser and Node.js.
- Tailwind CSS: A utility-first CSS framework.
- Component-Based Architecture: Break down the UI into reusable components.
- TypeScript for Type Safety: Use TypeScript to ensure type safety across the application.
- React Query for Data Fetching: Manage server-state using React Query.
- Axios for HTTP Requests: Use Axios for making HTTP requests.
- CSS in JS: Utilize Tailwind CSS for styling, allowing for a utility-first approach.
-
Ensure you have the following installed:
-
Clone the repository:
git@github.com:SajiburMunna/blog-posts-timeline.git
-
Navigate to the project directory:
cd blog-posts-timeline
-
Create .env.local file on root and add this key:
VITE_BASE_URL =
-
Install dependencies:
yarn install
-
Start the development server:
yarn dev
Open your browser and visit http://localhost:5173
.
- .env: Ensure you add your own environment variables and replace
https://jsonplaceholder.typicode.com
with your actual API URL. - Folder Structure: Customize the folder structure according to your project's requirements.