Giter Site home page Giter Site logo

plank / nova-calendar-tool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from czemu/nova-calendar-tool

0.0 2.0 0.0 721 KB

A Laravel Nova tool to display a calendar with event management.

License: MIT License

Vue 41.52% JavaScript 1.34% PHP 54.92% SCSS 0.07% Blade 2.15%

nova-calendar-tool's Introduction

Laravel Nova Calendar Tool

This is a package for Laravel Nova which allows you to create, update and delete events on the calendar. It also has a Google Calendar integration.

Screeenshots

Nova Calendar Tool - screen 1 Nova Calendar Tool - screen 2 Nova Calendar Tool - screen 3

Requirements

Installation

Install the package via composer:

composer require czemu/nova-calendar-tool

Publish the migration:

php artisan vendor:publish --provider='Czemu\NovaCalendarTool\ToolServiceProvider' --tag="migrations"

Run the migration:

php artisan migrate

Publish the config (optional):

php artisan vendor:publish --provider='Czemu\NovaCalendarTool\ToolServiceProvider' --tag="config"

Register the tool in the tools method of the NovaServiceProvider:

// app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        // ...
        new \Czemu\NovaCalendarTool\NovaCalendarTool,
    ];
}

Google Calendar Integration

This step is optional. If you want to synchronize your events with Google Calendar you have to publish the configuration file from spatie/laravel-google-calendar package:

php artisan vendor:publish --provider="Spatie\GoogleCalendar\GoogleCalendarServiceProvider"

This will create the config/google-calendar.php file with the following content:

<?php

return [

    /*
     * Path to the json file containing the credentials.
     */
    'service_account_credentials_json' => storage_path('app/google-calendar/service-account-credentials.json'),

    /*
     *  The id of the Google Calendar that will be used by default.
     */
    'calendar_id' => env('GOOGLE_CALENDAR_ID'),
];

So next, you have to insert GOOGLE_CALENDAR_ID=your_id into the .env file (it's in the Google Calendar settings page) and the account credentials into the storage/app/google-calendar/service-account-credentials.json file (you can obtain it from Google API Console). Both of these things are explained here.

Artisan Commands

Export all events to Google Calendar

php artisan nova-calendar:export

Import all events from Google Calendar

php artisan nova-calendar:import

Credits

License

The MIT License (MIT). Please see the LICENSE.md file for more information.

nova-calendar-tool's People

Contributors

czemu avatar evandime avatar flakerimi avatar meletisf avatar

Watchers

James Cloos avatar  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.