austintoddj/studio

This package is abandoned and no longer maintained. The author suggests using the austintoddj/canvas package instead.

Medium-inspired frontend for Canvas.

Installs: 331

Dependents: 0

Suggesters: 0

Security: 0

Stars: 15

Watchers: 1

Forks: 4

Open Issues: 5

Language:Vue

v1.2.0 2020-09-21 20:45 UTC

This package is auto-updated.

Last update: 2020-09-25 13:36:39 UTC


README

header.png

68747470733a2f2f706f7365722e707567782e6f72672f61757374696e746f64646a2f73747564696f2f646f776e6c6f616473 68747470733a2f2f706f7365722e707567782e6f72672f61757374696e746f64646a2f73747564696f2f762f737461626c65 68747470733a2f2f706f7365722e707567782e6f72672f61757374696e746f64646a2f73747564696f2f6c6963656e7365

Introduction

While Canvas does not dictate a specific design for your frontend, it does provide a basic starting point using Bootstrap and Vue that will be helpful for many applications.

Installation

You may use composer to install Studio into your Laravel project:

composer require austintoddj/studio

Once the austintoddj/studio package has been installed, you may install the frontend scaffolding using the studio:install Artisan command:

php artisan studio:install

After installing the austintoddj/studio Composer package and generating the frontend scaffolding, your package.json file will include the necessary dependencies to install and compile:

# Using NPM
npm install
npm run dev

# Using Yarn
yarn
yarn dev

Configuration

After compiling Studio's assets, a primary configuration file will be located at config/studio.php. This file allows you to customize various aspects of how your application uses the package.

Studio exposes a simple UI at /studio by default. This can be changed by updating the path option:

/*
|--------------------------------------------------------------------------
| Base Route
|--------------------------------------------------------------------------
|
| This is the URI path where Studio will be accessible from. You are free
| to change this path to anything you like. Note that the URI will not
| affect the paths of its internal API that aren't exposed to users.
|
*/

'path' => env('STUDIO_PATH_NAME', 'studio'),

/*
|--------------------------------------------------------------------------
| User Identifier
|--------------------------------------------------------------------------
|
| This is the publicly identifying attribute given in the URL to expose
| users. By default, the User ID will be used. Note that "username"
| requires a canvas_user_meta record to exist and be defined.
|
| Supported Identifiers: "id", "username"
|
*/

'identifier' => env('STUDIO_USER_IDENTIFIER', 'id'),

License

Studio is open-sourced software licensed under the MIT license.