Developed a Simple Reading list Application using AngularV6
+ ApolloClient
as FrontEnd and NodeJs
+ Express
+ GraphQL
+ MongoDB
as Backend
- Get Books List using GraphQL Query
- Add Book
- Add Author
- Get Book - which return the book details and authors detail and similar books return by this author.
-
GraphQL Query for getBook
query($id: ID) { book(id: $id) { id name genre author { id name age books { id name genre } } } }
- Server -> Server Folder is nothing but backend
NodeJS + Express
Application, and usedGraphQL
for Querying the data from theMongoDB
Database. - Client -> Client folder is Angular6 Front end Application
-
run
npm install
inside both client and server folders -
run
ng build -prod
inside the client directory to build the Angular application and build files will be saved into theserver/public
directory. -
After that run
node app.js
inside the server folder to run the node application. -
navigate to
http://localhost:4000/
.