Skip to content

Console book shelf manager using json serialization with jsoncpp library.

Notifications You must be signed in to change notification settings

RomainPierre7/book_shelf_manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

book_shelf_manager

Console book shelf manager using json storage with jsoncpp library.

Features

With this app you will be able to :

  • Show all your books
  • Add a book
  • Remove a book
  • Edit a book

The attributes of a book are :

  • Title
  • Author
  • Year
  • Genre
  • Is read (true/false)

data persistence is ensured by json serialization (jsoncpp)

Json file example

{
	"books" : 
	[
		{
			"author" : "George Orwell",
			"genre" : "Science fiction",
			"is_read" : "true",
			"title" : "1984",
			"year" : "1949"
		},
		{
			"author" : "Joseph Kessel",
			"genre" : "Biography",
			"is_read" : "true",
			"title" : "Mermoz",
			"year" : "1950"
		}
	]
}

This file is the default one to be use as a demo. You can easily remove these books with the app or by replacing the data/books.json file with the following command :

echo '{
	"books" : 
	[
	]
}' > data/books.json

To install

  • On Ubuntu type the following command :
sudo apt-get install libjsoncpp-dev

To compile

Type :

make

To execute

Type :

./app

About

Console book shelf manager using json serialization with jsoncpp library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published