Skip to content

A simple implementation that shows notifications in real-time via broadcast

License

Notifications You must be signed in to change notification settings

caritoz/cms-notificacions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMS Notifications

This is a Laravel project built using PHP 8, SQLite, Vite, VueJs 3 and Inertia. It also contains Github Actions with a simple configuration for CI/CD in run-tests.yml.

Requirements

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Installation

  1. Clone the repository:
git clone https://github.com/caritoz/cms-notificacions.git
cd cms-notificacions

  1. Install the PHP dependencies:
composer install
  1. Install the NPM dependencies:
npm install
  1. Create a SQLite database file:
touch database/database.sqlite
  1. Set the configurations in the .env file, copy and generates application keys:
cp .env.example .env
php artisan key:generate
  1. Add your Pusher credentials to the .env file:
BROADCAST_DRIVER=pusher
PUSHER_APP_ID=your_app_id
PUSHER_APP_KEY=your_app_key
PUSHER_APP_SECRET=your_app_secret
PUSHER_APP_CLUSTER=your_app_cluster

Replace your_app_id, your_app_key, your_app_secret, and your_app_cluster with your Pusher credentials. You can get these credentials from the Pusher dashboard.

  1. Finally, migrate the database, and run database seeds:
php artisan migrate --seed

Development

To start the development server, run:

npm run dev

This will start the Vite development server and compile the assets. The development server will watch for changes in your code and automatically reload the page.

To run the PHP server (the output will give the address):

php artisan serve

This will start the PHP server and allow you to access the project at http://localhost:8000.

In Addition, to run the PHP jobs, run:

php artisan queue:work --queue=highest,high,default,low,lowest --tries=1

To deploy the project, you can follow the Laravel deployment guide. Make sure to configure your environment variables and set the correct permissions for the storage and bootstrap/cache directories.

You're ready to go! Visit CMS Notifications in your browser, and login with:

and open in other browser, and login with:

Testing

To run the tests, use the following command:

vendor/bin/pest

or you can run as well:

php artisan test

This will run all the tests located in the tests directory.

You can also run specific tests or test suites by specifying the file or directory path:

vendor/bin/pest tests/Unit/

Contributions

Contributions are welcome! Please create a pull request with your changes.

"Buy Me A Coffee"

License

This project is licensed under the GNU General Public License v3.0.

About

A simple implementation that shows notifications in real-time via broadcast

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published