Bumblr-Tumblr Clone
Bumblr was the third major project in Awesome Inc's coding bootcamp. The requirments for this project was to create a Laravel project that ingerated a Postgresql database and replicates the features of Tumblr. Tumblr is a social media platform for sharing texts, photos, quotes and links. For the site to behave like the Tumblr, it must be able to support text entries. The site must also be a one-installation-one-website model where every logged in users contribute content to the site and the most recent entry displays at the top of the page. For each entry, it must display a title, the name of the author, and what the author wrote.
This project was done in the span of three days. To complete the requirements of the project, I first created my database in Postgresql. Then after making my laravel project I created my blog post table migratrion. This migration contained the following columns: a user id column, a title column, a link column and a text column. The next step was creating a model for my blog post table that invloved the relationship between blog posts and their authors. The eloquent relationship was that a user has many blog posts.
The next step required in replicating the features of Tumblr was establishing the blog post controller and its routes. The first route that was created was the index route. The index route led to the index method in my blog post controller.The index method retrieved all blog posts created in order of when it was created then placed on the index page. After creating the index route and method, I proceed to create routes and methods to store the user's blog post, edit the blog post's content, update an existing blog post entry and to delete a blog post. To create and edit a blog post, two forms were made that requested the user to input a title, a link and blog post content.
Conclusion
This project helped me develop my research skills since this was the first time using both Laravel and Postgresql together. I mainly used the Laravel documentation and the Laracast videos to complete this project. If I were to continue working on this project, I would add two features. The first feature I would be to add a photo to a blog post, and the second feature I would be to add a video to blog post.