A thoughtful, literary blog platform where anyone can write and share stories, essays, and ideas. Built with Vue 3 and powered by the Blog Post API.
π Live: lapis-blush.vercel.app
- π Browse and read posts from all users
- βοΈ Write and publish your own posts
- π Register and log in with JWT authentication
- π Light / dark theme toggle
- π Paginated post feed
- π‘ Admin dashboard to manage and delete posts
| Layer | Technology |
|---|---|
| Framework | Vue 3 (Composition API) |
| Routing | Vue Router |
| State Management | Pinia |
| HTTP Client | Axios |
| Build Tool | Vite |
| Hosting | Vercel |
src/
βββ api/
β βββ api.js # Axios Setup
β βββ auth.js # Auth API calls (login, register, profile)
β βββ posts.js # Posts API calls
β βββ comments.js # Comments API calls
βββ assets/
β βββ main.css # Global CSS
βββ components/
β βββ Admindasbhoard.vue # Admin Dashboard component
β βββ Createpost.vue # Create Post component
β βββ Home.vue # Home Page component
β βββ Navbar.vue # Navbar component
β βββ Postdetail.vue # Post Details component
β βββ Profile.vue # Profile component
β βββ Register.vue # Register component
β βββ Signin.vue # Login component
β βββ Themetoggle.vue # Dark/light toggle component
β βββ Usetheme.js # Theme composable
βββ router/
β βββ index.js # Vue Router config
βββ stores/
β βββ auth.js # Auth state (Pinia)
β βββ posts.js # Posts state (Pinia)
βββ views/
β βββ HomePage.vue # Post feed with pagination
β βββ LoginView.vue # Login page
β βββ Register.vue # Register page
β βββ CreatePostView.vue # Create post page
β βββ PostDetailView.vue # Single post view
β βββ CreatePostView.vue # Create post form
β βββ AdminDashboard.vue # Admin post management
βββ App.vue
βββ main.js
Try the app using these demo accounts:
| Field | Value |
|---|---|
| slowreader@example.com | |
| Password | admin1234 |
| Field | Value |
|---|---|
| edrylp@gmail.com | |
| Password | admin1234 |
Users with role: "admin" in the database can access the admin dashboard at /admin. From there, admins can delete any post on the platform.
- Backend API: github.com/deyperfect/blogpostAPI
- API Docs: View on Postman