My project is a blog for reviewing video games. A user who has not been registered has access to the home page where they can see the four latest blog posts. They also have access to the blog page where they can search a blog. The search works as follows, the user can search any word/phrase they want and if a blog has that word/phrase in the title then they will be displayed. If not then they will recieve a message stating that there is no such blog that exists. The user can also filter blogs according to their categories. When the user selects a blog they are redirected to that blog which displays an image, how long ago it was created, who created it, the title, and the body of text. Below the body of text the user can also select 3 blog posts that relate to the one they are currently seeing. If a user wishes to create a blog post then they must have an account. To create an account the user can click on register in the side bar where they are then redirected to the register page. Once a user has registered they are redirected to their dashboard where they have the ability to create a post, create a category, and see the category list. The user should first create a category they wish to categorize their blog with. Then they can head into creating a blog post where they can input a title, choose an image, choose a category, and then write their review. Upon clicking the submit button then they have successsfully created a blog. If the user wishes to edit or delete a post then they should visit the blog page where an edit/delete button is placed on top of their blog.
- Uses laravel, docker, mySQL
- Uses laravel breeze for authentication
- mySQL workbench to connect to the database
- To deploy use
./vendor/bin/sail up
- Migrate database
./vendor/bin/sail artisan migrate
- to see images that you’ve uploaded
./vendor/bin/sail storage:link
- All commmands should be done in the directory where files are located
- First
./vendor/bin/sail artisan migrate
to run database migrations (if already done ingnore) - Second
composer require laravel/breeze --dev
laravel breeze package - Third
./vendor/bin/sail artisan breeze:install
publishes the authentication views, routes, controllers, and other resources to your application - Fourth
npm intall && npm run dev
command to build your assets - All commmands should be done in the directory where files are located
- First
./vendor/bin/sail artisan migrate:fresh
to reset database - Second
./vendor/bin/sail artisan db:seed --class=UsersSeeder
to generate users - Third
./vendor/bin/sail artisan db:seed --class=CategorySeeder
to generate categories for blogs - Fourth
./vendor/bin/sail artisan db:seed --class=BlogSeeder
to create blog posts - All commmands should be done in the directory where files are located
- Register an account on the Register page
- Takes you to the dashboard
- Create a category you want your blog to be about
- Create a post
- Fill in all the fields and submit
- Click Blog on the side bar to see your blog
- You can filter out blogs by clicking on a category
- You can search for a blog(title that has a word/phrase)
- You can edit/delete your blog on the Blog page(shows on the top left of your blog)
- You can log out by going into the Dashboard page. On the top right click your name and log out.
- Eric Aragon