Code Monkey home page Code Monkey logo

cms-notificacions's Introduction

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.

cms-notificacions's People

Contributors

caritoz avatar

Watchers

 avatar

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.