Git Product home page Git Product logo

larablog's Introduction

MIT Licence

Blog Using Laravel 10

Let's keep it as simple as possible. Configure anything you want

A full-featured blogging system for personal use. No frontend theme and anything heavy or unnecessary library used.

Technologies used

  1. TailwindCSS
  2. Alpine.js
  3. Laravel
  4. Livewire

There are four several types of users with several permissions

  1. Admin/Owner
  • Can be accessed in <url>/admin/login
  • Can manage articles and comments of other users.
  • Can manage categories.
  • Can manage keywords.
  • Can manage other users except Owner.
  1. Reader
  • Can read and comment on article providing his email address.
  • Can subscribe to be notified for new articles.
  • Can search for articles.
  • Can navigate articles based on categories.

Installation Process

  1. Execute git clone https://github.com/alimranahmed/LaraBlog.git on your terminal to download this project.
  2. Go to the project root directory and execute composer install to install all PHP dependencies of the project
  3. Create a file named as .env and copy the content of .env.example to newly created .env file
  4. Then execute php artisan key:generate on your terminal/cmd to generate environment key
  5. Then create a Database for this project and edit the .env file to authorized this project on your database.
  6. Execute php artisan migrate:refresh --seed terminal on your terminal.
  7. Now you are ready to go, If you don't want to create any virtual host for this project then execute php artisan serve
  8. Now visit the url shown on your terminal, something like localhost:8000. It's running!

Note: After migration and seeding, to login as admin/owner using the following credentials:

Email: [email protected]
Password: owner

Sample Blog

  1. https://imranic.com

Contribution

Anyone is always welcome to contribute on the project. If you want to work with:

  1. Just create an issue(even if you want to fix the issue).
  2. After fixing any issue or adding any new feature just send a pull request.
  3. I will be happy to add your code in order to enhance this project. Thanks.
License

MIT

larablog's People

Contributors

alimranahmed avatar dependabot[bot] avatar emtiazzahid avatar heinkhantzaw avatar imanghafoori1 avatar me-masoud avatar minhajul avatar mortezapiri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

larablog's Issues

change in readme.md file

Please change
php artisan generate:key
to
php artisan key:generate

i guess this is working for me , Thank you

Integrity constraint violation: 1452 Cannot add or update a child row:

After doing 1-5 steps mentioned in README document, in step 6 `

php artisan migrate:refresh --seed

its throwing exception while seeding ArticlesTableSeeder file.

`

  SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`lara_blog`.`article_keyword`, CONSTRAINT `article_keyword_keyword_id_foreign` FOREIGN KEY (`keyword_id`) REFERENCES `keywords` (`id`))   
  (SQL: insert into `article_keyword` (`article_id`, `keyword_id`) values (1, 1))     

Error seeds

yuran@REANIMATOR c:\OpenServer\domains\bbbb
$ php artisan migrate:refresh --seed
Migration table not found.
Migration table created successfully.
Migrated: 2014_09_01_014904_create_images_table
Migrated: 2014_10_11_015137_create_addresses_table
Migrated: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_000001_create_readers_table
Migrated: 2014_10_12_100000_create_password_resets_table
Migrated: 2016_10_01_014152_create_categories_table
Migrated: 2016_10_01_014203_create_keywords_table
Migrated: 2016_10_01_014543_create_articles_table
Migrated: 2016_10_01_014930_create_comments_table
Migrated: 2016_10_01_014944_create_pages_table
Migrated: 2016_10_01_014952_create_assets_table
Migrated: 2016_10_01_015118_create_email_logs_table
Migrated: 2016_10_03_014544_create_article_image_table
Migrated: 2016_10_03_190244_create_article_keyword_table
Migrated: 2016_12_24_171919_entrust_setup_tables

[BadMethodCallException]
This cache store does not support tagging.

Tables "users", "role_user", "permission_role", "permissions" and some others - empty.
Probably because of this error:
[BadMethodCallException]
This cache store does not support tagging.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.