Adding books microservice for GE 8.6

This commit is contained in:
Ravi Srinivasan
2019-07-02 17:33:29 +05:30
parent 1deac4dc9b
commit f3b01722a2
17 changed files with 4273 additions and 0 deletions

29
books/data/authors.js Normal file
View File

@@ -0,0 +1,29 @@
const authors = [
{
id: 1,
name: 'James Joyce',
dob: 1882
},
{
id: 2,
name: 'F Scott Fitzgerald',
dob: 1896
},
{
id: 3,
name: 'Aldous Huxley',
dob: 1894
},
{
id: 4,
name: 'Vladimir Nabokov',
dob: 1899
},
{
id: 5,
name: 'William Faulkner',
dob: 1897
}
];
module.exports.books = authors;

39
books/data/books.js Normal file
View File

@@ -0,0 +1,39 @@
const books = [
{
ranking: 1,
name: 'ULYSSES',
Author: 'James Joyce',
country: 'Ireland',
yearPublished: '1922'
},
{
ranking: 2,
name: 'THE GREAT GATSBY',
Author: 'F. Scott Fitzgerald',
country: 'USA',
yearPublished: '1925'
},
{
ranking: 3,
name: 'A PORTRAIT OF THE ARTIST AS A YOUNG MAN',
Author: 'James Joyce',
country: 'Ireland',
yearPublished: '1916'
},
{
ranking: 4,
name: 'BRAVE NEW WORLD',
Author: 'Aldous Huxley',
country: 'UK',
yearPublished: '1932'
},
{
ranking: 5,
name: 'THE SOUND AND THE FURY',
Author: 'William Faulkner',
country: 'USA',
yearPublished: '1929'
}
];
module.exports.books = books;