nodejs-starter-kit icon indicating copy to clipboard operation
nodejs-starter-kit copied to clipboard

Create a new Blog Module

Open beingtmk opened this issue 5 years ago • 14 comments

  • [ ] Clap Feature
  • [ ] Share
  • [ ] Comment
  • [ ] More from this User
  • [ ] Content (More to think about this!)

beingtmk avatar Nov 19 '19 17:11 beingtmk

The schema for this user can be title, cover image and content. For the content, we can use medium draft Link. Not tested yet, but I'll start working on it and check if it is feasible.

The first five can be added one by one after the last one is done.

@beingtmk sounds cool?

thebishaldeb avatar Dec 15 '19 05:12 thebishaldeb

https://github.com/brijeshb42/medium-draft https://draftjs.org/

beingtmk avatar Dec 15 '19 09:12 beingtmk

User Schema names from here: https://schema.org/Blog,

But anyways let's start with frontend, and backend we will figure out later.

beingtmk avatar Dec 15 '19 09:12 beingtmk

https://starterkit-bishal.herokuapp.com/blog/new

This is the form for the new component. After clicking submit, a new component opens up below which shows the output.

https://starterkit-bishal.herokuapp.com/blog/

And this is the output of the blog in a different page.

thebishaldeb avatar Dec 21 '19 13:12 thebishaldeb

@thebishaldeb,

  1. -[ ] Comments should be created as a new Module
  2. -[ ] BlogListView (only published blogs shown here) & BlogDetailView should be created
  3. -[ ] Filters
  4. -[ ] Blogs should have the functionality to add a list of tags
  5. -[ ] Sharing Options should be available, also created as a new module
  6. -[ ] There should also be a category model Ex. (Science, Coding, etc.) and CRUD for the same. Model: Name, Description, Image
  7. -[ ] Blog should have a status variable that can be disabled, draft, published, etc.
  8. -[ ] A signed-in user can only post a Blog, and also the author should be stored. in the blog model
  9. -[ ] MyBlogs - Where one change status of blog, delete, share etc.
  10. -[ ] BookMark fuctionality for Blogs, & list of bookmarked blogs

beingtmk avatar Dec 22 '19 13:12 beingtmk

@thebishaldeb, Create these modules, and import components from these modules into blog.

  • [ ] 1. share - everything related to sharing
  • [ ] 2. tag - all form and other components related to tags
  • [ ] 3. comment - components related to comments

These should be the urls

  • [x] /blog/list - list of all the blogs and filters (blogging homepage)
  • [x] /blog/new - new blog form, only show when logged in
  • [x] /blog/bookmarks - list of bookmarked blogs
  • [x] /blog/my-blogs - list of my blogs
  • [x] /blog/id - blog detail page for blog with id
  • [x] /blog/username - all the blogs for particular username

beingtmk avatar Dec 31 '19 12:12 beingtmk

@thebishaldeb, Create a blog card component with reusability in mind so that you don't have card components with overlapping code parts,

You can break the components into the smallest parts and then reused them everywhere.

also better to also create containers for each smaller component like bookmark, like etc. so that later on it will be easy to connect them to the backend

beingtmk avatar Dec 31 '19 13:12 beingtmk

@thebishaldeb, Mention your blog demo link here

beingtmk avatar Dec 31 '19 13:12 beingtmk

https://starterkit-bishal.herokuapp.com/blog/my-blogs - My Blogs

https://starterkit-bishal.herokuapp.com/blog/list - List of Blogs

https://starterkit-bishal.herokuapp.com/blog/bookmarks - Bookmarks

https://starterkit-bishal.herokuapp.com/blog/:id - Blog Detail

https://starterkit-bishal.herokuapp.com/blog/new - Blog Form

https://starterkit-bishal.herokuapp.com/blog/@:username - Blog User

thebishaldeb avatar Jan 01 '20 12:01 thebishaldeb

Created the comments module. We need to do the nesting part. Sharing module can be done according to the backend.

thebishaldeb avatar Jan 06 '20 17:01 thebishaldeb

I've created a RenderTagField for form in the look module

thebishaldeb avatar Jan 06 '20 18:01 thebishaldeb

@thebishaldeb, put all the navbar links in a dropdown called Blog

lokeshrana9999 avatar Jan 06 '20 18:01 lokeshrana9999

@thebishaldeb, put all the navbar links in a dropdown called Blog

Done!

thebishaldeb avatar Jan 07 '20 17:01 thebishaldeb

  • [ ] @thebishaldeb, -series, add image, add video, refinements.

beingtmk avatar Jul 13 '20 15:07 beingtmk