Build an application to display blog articles
-
Request Body : { "username" : "xyz", "age" : 23, "email" : "[email protected]", "password" : "xyz" } Response : { The user has been signed up successfully! }
-
Request Body : { "email" : "[email protected]", "password" : "xyz" } Response : { "msg" : "Authentication has been successful", "token" : "JWT_TOKEN" }
-
Authorization: "Beaver JWT_TOKEN" Response : { "data" : userData, // User profile info. is stored in data "articles" : userArticles; // All the articles he/she published is stored in articles }
-
Authorization: "Beaver JWT_TOKEN" Response : { "description" : "", // Article description is stored in description "captionTagList" : "" // All the tags related to an article stored in captionTagList }
-
Authorization: "Beaver JWT_TOKEN" Response : { "articles" : [] // All the newest to oldest articles based on sorting are stored in this articles list }
-
Authorization: "Beaver JWT_TOKEN" Response : { "articleData" : [] // All the articles which have given "tagname" are stored in this articleData list }
-
node server.js or nodemon // to run the node server npm test // for checking Unit Tests