Releases: mzcoder-hub/timeline-cms-management
Releases · mzcoder-hub/timeline-cms-management
Patch Update: v0.1.5-alpha
Patch Update: v0.1.5-alpha
Date: July 20, 2024
Overview
This patch update includes several improvements, bug fixes, and new features to enhance the functionality and user experience of the Multi-Timeline CMS.
Changes and Improvements
Authentication
- Feature: Added user authentication and authorization.
- Implemented login, register, and logout functionalities.
- Protected routes using
ProtectedRoute
component. - Middleware to verify JWT tokens in backend routes.
Backend
- Routes:
- Added authentication routes in
routes/auth.js
. - Updated content routes in
routes/content.js
. - Updated timeline routes in
routes/timelines.js
.
- Added authentication routes in
- Middleware:
- Added
auth.js
middleware to verify JWT tokens.
- Added
Frontend
- Components:
- Added
Register.js
for user registration. - Added
Login.js
for user login. - Updated
App.js
to useProtectedRoute
for authenticated routes.
- Added
- Context:
- Added
AuthContext.js
for managing authentication state.
- Added
Bug Fixes
- Fixed an issue with the
auth.js
middleware causing errors when reading theAuthorization
header. - Fixed maximum update depth exceeded error in
AuthContext.js
.
API Endpoints
Authentication
- POST /api/auth/register - Register a new user.
- POST /api/auth/login - Login and get a token.
- POST /api/auth/logout - Logout the user.
Timelines
- GET /api/timelines - Get all timelines.
- GET /api/timelines/:id - Get a specific timeline by ID.
- POST /api/timelines - Create a new timeline.
- PUT /api/timelines/:id - Update a specific timeline by ID.
- DELETE /api/timelines/:id - Delete a specific timeline by ID.
- GET /api/timelines/overdue - Get all overdue timelines.
- GET /api/timelines/upcoming - Get all upcoming timelines.
Content
- GET /api/content/:timelineId - Get all content for a specific timeline.
- POST /api/content - Create new content.
- PUT /api/content/:id - Update a specific content by ID.
- DELETE /api/content/:id - Delete a specific content by ID.
Notes
- Ensure to update the environment variables in your
.env
file to includeJWT_SECRET
for JWT authentication. - Run the backend server on http://localhost:5000 and the frontend development server on http://localhost:3000.
Contributors
- @mzcoder-hub made more contribution in #2
Additional Information
For detailed information on the project, please refer to the README.
License
This project is licensed under the MIT License. See the LICENSE file for details.
v0.0.1-alpha
v0.0.1-alpha - Initial Alpha Release
Summary
This is the initial alpha release of the Timeline CMS application. It includes basic functionality for managing timelines, adding content, and uploading files.
New Features
- Multi-Timeline Management: Create and manage multiple timelines. Each timeline can have its own set of contents.
- Content Management: Add, view, and edit content for each timeline. Content includes a title, body, deadline, due date, and an optional file upload.
- File Upload: Support for uploading
.docx
files to each piece of content. - Overdue and Upcoming Timelines: Separate views for overdue and upcoming timelines to help users keep track of important deadlines.
- Responsive Design: The application is built with Bootstrap to ensure responsiveness across different devices.
Bug Fixes
- N/A (initial release)
Improvements
- N/A (initial release)
Breaking Changes
- N/A (initial release)
Known Issues
- File Preview Issue: Users might experience issues with previewing uploaded files.
- Browser Compatibility: Full functionality is supported primarily on Chrome and Firefox. Other browsers may have limited support.
Full Changelog: https://github.com/mzcoder-hub/timeline-cms-management/commits/0.0.1-alpha
Contributors
- @mzcoder-hub made their first contribution in #1
Additional Information
For detailed information on the project, please refer to the README.