Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A new open source CMS without database using TALL stack

License

NotificationsYou must be signed in to change notification settings

happytodev/typhoon

Repository files navigation

Latest Version on PackagistGitHub Tests Action StatusGitHub Code Style Action StatusTotal Downloads

Typhoon is a way to manage your content as you want.Why Typhoon ? Because he doesn't use database. It uses Orbit.

Support us

You can support the development of this open-source package here

Installation

Start with a fresh install of Laravel :

laravel new your-awesome-project-name

or

composer create-project laravel/laravel your-awesome-project-name

Enter in your project directory :

cd your-awesome-project-name

You can install the package via composer:

composer require happytodev/typhoon

As Typhoon, usefilament-navigation plugin from Ryan Chandler and as I adapted it (fork is herehttps://github.com/happytodev/filament-navigation) to be compliant with Orbit (also from Ryan) and as the PR is waiting approval from Ryan, you have to set an another settings before install Typhoon.

Follow these steps :

"repositories": [        {"type":"vcs","url":"https://github.com/happytodev/filament-navigation"        }    ],"require": {"ryangjchandler/filament-navigation":"dev-main"    }

Save thecomposer.json file and runcomposer update

Alternatively, if you don't add above require block in yourcomposer.json file, you can install the package via composer:

composer require ryangjchandler/filament-navigation=dev-main

To use Orbit with filament-navigation, you have to add a key to your .env file :

FILAMENT_NAVIGATION_DB_ENGINE=orbit

Give a name to your website by adding the following key to your .env file

TYPHOONCMS_NAME="MyWebsite"

Always in your.env file replace following :

DB_CONNECTION=mysqlDB_HOST=127.0.0.1DB_PORT=3306DB_DATABASE=DB_USERNAME=DB_PASSWORD=

by

DB_CONNECTION=orbit

You can now run the install script of Typhoon via Artisan :

php artisan typhoon:install

When the script ask youUser model file already exists. Do you want to overwrite it? (yes/no) [no]: you can answer yes. It will modify the default User model to adapt it to use Orbit instead classic database like for example MySQL.

Last thing, go to thecontent\usersfolders and edit with your favorite editor the first user, usually it is the file1.md:

---id:1name:'John Doe'email:john@doe.compassword:$2y$10$0wdxKSl7ksxk8yrTgU8!K90oLmMq2eJ20pwUBSu0ICMWpc959DpTqmis_admin:0created_at:2022-05-27T18:39:22+00:00updated_at:2022-05-28T09:04:57+00:00---

modify this lineis_admin: 0 to this oneis_admin: true :

---id:1name:'John Doe'email:john@doe.compassword:$2y$10$0wdxKSl7ksxk8yrTgU8!K90oLmMq2eJ20pwUBSu0ICMWpc959DpTqmis_admin:truecreated_at:2022-05-27T18:39:22+00:00updated_at:2022-05-28T09:04:57+00:00---

Crontabs

Typhoon has the possibity to published or unpublished posts by setting date and hour of action.It needs you configure your crontab as explained inlaravel documentation.

The following must be adapted to your system, but on a classical Linux :

crontab -e

Then adding this and take care to adapt path of your Typhoon installation

*****cd /path-to-your-project&& php artisan schedule:run>> /dev/null2>&1

Compile assets

Only if you need to adapt assets and compile them

Install TailwindCSS :

npm install -D tailwindcss
npm install @tailwindcss/typography

Install Npm dependencies and compile assets :

npm install&& npm run dev

compile tailwind asset

npx tailwindcss -i ./resources/css/app.css -o ./public/css/app.css

Updating

After you update TyhoonCms withcomposer update you can launchphp artisan typhoon:update.

The script will ask you wich version you come from and adapt the update in consequence.

How to connect

Now you can connect to the backoffice, via the url of your project and adding to it/admin

How to use

Out of the box, you have this entities :

  • users
  • posts
  • categories
  • tags
  • pages
  • navigation
  • social networks

To create a post, a category is necessary. So, your first step is to create a category, before create a post.

After installation, you have demo content with :

  • an home page
  • your user and one more default userjohn@doe.com and password :johndoesecret
  • a category
  • a tag
  • a demo post :yourTyphoonSite.test/posts/the-first-post-with-typhoon
  • a menu
  • a social network group
  • a page listing all posts :yourTyphoonSite.test/posts/

When you create a page, you can visit it with this url :

yourTyphoonSite.test/page/{slug_of_your_page}

The home page is different and is plug directly toyourTyphoonSite.test/

Knowned limitations

Don't forget : this is a beta version, please do not use it in production unless you know what you do !

Currently there is some limitations :

  • In navigations, only one menu is usable with template provided and it name MUST bemain
  • In Social Networks, the name of the group MUST also bemain

Testing

composertest

Changelog

Please seeCHANGELOG for more information on what has changed recently.

Contributing

Please seeCONTRIBUTING for details.

Security Vulnerabilities

Please reviewour security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please seeLicense File for more information.

Versionning

TyphoonCms developement follows theSemVer method.


[8]ページ先頭

©2009-2025 Movatter.jp