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.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
- Clone the repository:
git clone https://github.com/caritoz/cms-notificacions.git
cd cms-notificacions
- Install the PHP dependencies:
composer install
- Install the NPM dependencies:
npm install
- Create a SQLite database file:
touch database/database.sqlite
- Set the configurations in the .env file, copy and generates application keys:
cp .env.example .env
php artisan key:generate
- 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.
- Finally, migrate the database, and run database seeds:
php artisan migrate --seed
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:
- Username: [email protected]
- Password: secret
and open in other browser, and login with:
- Username: [email protected]
- Password: secret
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 are welcome! Please create a pull request with your changes.
This project is licensed under the GNU General Public License v3.0.