Library management app with Symfony 7 and Nuxt 3
○ Archived
A library management app built in four days: a Symfony 7 and API Platform API secured with JWT, and a Nuxt 3 front end for books, authors and categories.
Context
This project is an exercise built in a few days to try the Symfony and Nuxt pairing on a concrete case: managing a library of books, authors and categories.
The repository holds both apps, an API back end and a separate front end, with a database started through Docker.
Challenge
The scope was small but complete: entity relations, authentication, role-based permissions and a usable admin interface. Everything had to fit in a few days.
Books have an owner, the user who created them, and operations on authors and categories are not open to every role.
Approach
On the Symfony side, I modelled the Book, Author and Category entities with Doctrine, exposed through API Platform with search filters. Authentication uses Lexik’s JWT bundle, a processor assigns the owner automatically when a book is created, and a console command seeds test data.
The Nuxt 3 front end, in TypeScript, uses Tailwind CSS and DaisyUI: a home page with stats and recent books, lists with filters and sorting, edit and delete modals, skeleton loading states and notifications. Composables centralise authentication and API calls, and a middleware protects routes.
(04) — Results
Key figures- 4
- days of development
- 3
- domain entities
- 2
- apps: API and front end
- 18
- commits
