The frontend of Scribeo, a user blog management platform, is built with React, Tailwind CSS, and Redux Toolkit. It allows users to interact seamlessly with the blog platform.
-
Authentication:
- User login and registration.
- Secure session management using Redux and JWT.
-
Blog Management:
- Create, update, delete, and view blog posts.
- Rich text editor for creating content using React-Quill.
-
Image Handling:
- Upload images while creating posts.
- Optimized for secure and efficient image handling.
-
State Management:
- Centralized state management with Redux Toolkit.
- Persistent state using Redux-Persist.
- Node.js 16+
- npm or Yarn
-
Clone the repository:
git clone <repository-url> cd scribeo-frontend
-
Install dependencies:
npm install # or yarn install
-
Start the development server:
npm start # or yarn start
-
Configure environment variables: Create a
.env
file in the root directory:VITE_BASE_URL=http://127.0.0.1:8000/
Refer to package.json
:
- React: Core library for building user interfaces.
- Tailwind CSS: For styling.
- Redux Toolkit: Simplified state management.
- React-Quill: Rich text editor.
- Axios: For API communication.
- Formik & Yup: For form validation.
src/
├── assets/ # Static assets (e.g., images)
├── components/ # Reusable UI components
├── features/ # Feature-specific components
├── hooks/ # Custom React hooks
├── layouts/ # Page layouts (e.g., headers, footers)
├── lib/ # Utility functions
├── pages/ # Application pages (route components)
├── services/ # API calls and integrations
├── store/ # Redux store configuration
└── utils/ # Miscellaneous utilities
- Development: Local server with
npm start
. - Production: Build the app using:
Host the
npm run build
build/
directory on any static server (e.g., Netlify, Vercel).
Both repositories are designed to work seamlessly together, ensuring a smooth development and user experience.