- Setting up start-up files
- Since there was no startup code for this assignment, the miniproject code from class activity was used to built this blog page.
- Basic routs were built for both Posts & Comments using the simliar api rotes
- seed.js file is developed to link the mysql data base for posts and comments and users data.
- Posts section of the blog page is working now.
- The user need to click on the Dashboard to create a post
- Comments are added under each post.
- Comments' creat and delete buttons are also added uder each post.
- The user need to click on each post in the the home-page to comment.
- The user need to sign-up or login to ceate a post or make any comments
- password must be 8 charachter long to sign-in
- An alert message will be raised if login or sign-up criteria is not met
- Four screen shots are taken to show the functionality of the code.
- only who created the post can delete the post.
- All Comments will be deleted if post is deleted.
- A comment can be deleted who created the comment or could update it.
- This is probably not the best refactoring of mini-project code,but it meets the requiremnsts.
- The following are the screen-shots showing the functionality of code how it works.
- Link to github repository:
https://github.com/rizvi5a/tech-blog
- The fooling is the web page deployed with Heroku:
https://rizvi-techblog.herokuapp.com/login
- Post , Comment, log-in page, and MSQL data pages screenshots, respectively.