Code Monkey home page Code Monkey logo

bookmanagement's Introduction

BookManagement

The objective

The goal is to practice the Symfony framework. So I create a library simulation. Each user can borrow a book. There is an admin area where we can manage the books and the users.

Description

The idea is to simulate a library. Thus, everyone can register and borrow a book (then return it).

Each user has a space where he/she can see his/her borrowed books.

Note that a book cannot be borrowed by several users.

There is a back office to manage the books:

  • add, modify and delete
  • force a book to be borrowed or returned by a user

and also for users:

  • add, modify and delete

I also created an API, which is not secured for the moment. Thanks to this API, you can also perform CRUD tasks.

Entities

So there are three entities:

  1. The books Each book has an ID, a title, a category ID, a boolean to know if it is borrowed or not, and the id of the borrower (if there is one).

  2. The categories Each category has an ID, a title and a collection of books. Note that a category can have several books, but a book can only have one user.

  3. Users Each user has an ID, a name, a password, and a collection of books. Each user can have several books, but a book can only have one user.

How does it work?

First Page

The arrival on the site is a page with two buttons: Connection and registration.

Connected

Once connected, we arrive on a page.

Two buttons: View your books, and view all books.

Note the menu where we can navigate :

  • all books
  • my books
  • logout

My Books

On this page, we visualize all our borrowed books. You can also click on "see more" to display the page of a book.

Book Page

On this page, you can see the information of the book. If it is borrowed and you are the borrower, you can return it. If it is free, you can borrow it.

All Books

On this page, you can see the information about each book, and you can click on "see more" to display the book page.

Technologies used

To build this application, I used Symfony and Bootstrap. I also added an api via api platform.

What I learned from it ?

I applied Symfony, with more specifically the understanding of an entity, a controller, and the Doctrine ORM. I also learned how to create a Back Office via EasyAdmin, and API Platform.

Nevertheless, for my next projects, I plan to secure the access to the API and publish the application.

bookmanagement's People

Contributors

martinelias3 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.