Giter VIP home page Giter VIP logo

library-management-java's Introduction

Reading Management System.

I've tried to keep the schema as simple as possible as the only goal of this task was to implement what we've learned in the OOP semester. so my focus was on applying OOP examples as much as needed, and I've used my backend knowledge working with a database to implement a GUI application that glues OOP + database + GUI programming together.

Tool

  • Database -> mysql
  • GUI framework -> JavaFX
  • IDE -> Intellij IDEA community edition

Features

This is a simple reading management system which:

  • the user can authenticate himself by signing up and logging in to the system
  • the user can add, remove, delete, and update books based on progress.
  • the user can export data to Excel sheet for further analysis

PoC (Proof of Concept)

This is a demo of the running application

2023-12-10.11-07-42.mp4

DB schema

Database Schema Diagram

CREATE TABLE `users` (
  `user_id` int AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `username` VARCHAR(250),
  `email` VARCHAR(250),
  `password` VARCHAR(16),
  `gender` VARCHAR(250)
);

CREATE TABLE `books` (
  `id` int AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `title` VARCHAR(50),
  `author_name` VARCHAR(50),
  `user_id` int
);


ALTER TABLE `books` ADD CONSTRAINT `fk_books_users` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`);

DML queries used:

-- get all users
SELECT * FROM users;

-- count users
SELECT COUNT(id) FROM users;

-- signup user
INSERT INTO users (email, password, username, gender) VALUES (?, ?, ?, ?);

-- loging user
SELECT * FROM users where username = ?;

-- add book
INSERT INTO books (title, author_name, status, user_id) VALUES (?, ?, ?, ?);

-- update book
UPDATE books SET title = ?, author_name = ?, status = ? WHERE id = ?

-- delete book
DELETE FROM books WHERE id = ?;

-- count books for users
SELECT COUNT(id) FROM books;

TODO and log

  • Implement user authentication (signup, login)
  • Implement Book adding feature, prefetching the books for registered or already logged in users
  • Implement Book Updating/Deletion
  • Implement Export to Excel Functionality
  • https://stackoverflow.com/questions/27556536/javafx-scene-layout-pane-cannot-be-cast-to-javafx-fxml-fxmlloader
  • Change the schema
  • Read about ObservalList (needed to update TableColumns in time);
  • implement UML design and presentation.
  • upload the new PoC
  • FUTURE -> (Refactor totalBook count to be based on tableView rows count only instead of the database)
  • FUTURE -> Package the application & Dockersize.

library-management-java's People

Contributors

mrbomber0x001 avatar

Watchers

 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.