Giter Club home page Giter Club logo

laravel-blog's Introduction

Blog

Written on Laravel

Features and instruments used

  • Blog and admin parts
  • Login and registration
  • Validation
  • Profile page
  • Posts management
  • Comments
  • Follow/unfollow system
  • Likes system
  • Ajax requests
  • Sorting
  • Websockets:
    • Notifications
  • Admin panel:
    • CRUD posts/comments/categories
    • Publish/unpublish posts/comments/postcategories

Installation and deployment

  1. Clone repo and install all dependencies:
composer install
npm i

npm run dev or npm run prod, depends on what environment you're on.

Make sure you created .env cp .env.example .env,

and generate laravel app key php artisan key:generate.

  1. Create database and set corresponds properties in .env:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=notes
DB_USERNAME=
DB_PASSWORD=
  1. Populate db with migrations and seeds:
php artisan migrate --seed

Now lets setup our broadcasting system

  1. We use beyondcode/laravel-websockets for notification system, for that we need to set next .env variables:
BROADCAST_DRIVER=pusher
  1. Set Pusher's (Pusher Channels broadcaster) properties (it does not matter what you set as your PUSHER_ variables, just make sure they are unique for each project):
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=
  1. Set your SSL certificates paths(for HTTPS scheme):
LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT=
LARAVEL_WEBSOCKETS_SSL_LOCAL_PK=
  1. Once we have configured our WebSocket apps and Pusher settings, we can start the Laravel WebSocket server by issuing the artisan command:
php artisan websockets:serve
  1. Finally, start up the queue:
php artisan queue:work

Tech stack used

laravel-blog's People

Contributors

vladimirbalin avatar

Watchers

 avatar

laravel-blog's Issues

Toggle things - bad practice

get rid of any toggle methods such as: BlogComment::updatePublishedAt(), AdminApiController::togglePublishComment() etc...

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.