Image description

ProGrad Lab | BLOG - LIST

A Quick Introduction

Inspired by Wattpad, Mr. Alex is on a mission to build "CODE WALL" - A community for developers. He has laid out a plan & hired a designer & developer to work on the project. Unfortunately, due to some trust issues, he had to fire them. He is suspicious that one of his competitors is trying to steal his idea & work on it quickly even before him.

This is Alex's dream project. Well, now it's ours too. We assured him that you'd help out your best to finish this on time. So, could you hurry up & get going?

What should you do

Fork this repo
Clone this repo
Practice Java basics - operators, conditions, loops, class and object

How To Submit

Upon completion, run the following commands:

git add .
git commit -m "ProGrad ID"
git push origin master

And finally, create a pull request so your ProGrad Mentor (PM) can review your work.

Instructions

  1. Do not modify the entire code.
  2. Edit the code as per the instructions.
  3. Go to Java Resources -> src folder.
  4. You will have 4 packages src/controller, src/model, src/businesslogic and src/service.
  5. Once the progressions are completed, follow the instructions to run the application and test your code.
  6. Use username as admin and password as admin to login inside the blog.
  7. This is a continuation of Day-4.You can build on top of Day-4 Project Builder.

Run the Project

  1. Right click on the project.
  2. Go to Run as -> Run on server.
  3. You can check the output in eclipse browser or in your browser.

Progression - 1

  1. Day - 5 We will perform CRUD operations using LIST.
  2. Your task is to create a class called as CRUDOperations inside service folder.
  3. Create a method called as public List addBlog(Blog blog).
  4. Create a method called as public List viewBlog(Blog blog)
  5. Your output is a list
  6. Print the list in the console and also return the output to blog controller.

Progression - 2

  • Perform sorting using lambda expressions and display the output in console.
  • Perform sorting based on title and posted date and display the output in console.

Bonus - 1

  • Use Set to perform the above operations.
  • Display the output in console.

Bonus - 2

  • Use Map to perform the above operations.
  • Display the output in console.

Happy Coding ProGrad ❤️