aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Micieli <micieli@laposte.net>2019-08-19 10:52:57 +0200
committerWilly Micieli <micieli@laposte.net>2019-08-19 10:52:57 +0200
commit8ac1ca2debb513a13b4ac2c48840d70520fb4b7a (patch)
treee546a1cd76d25317c9b09c35553c60668ca80783
parent0f7266d2955724f380cb5e0c2f67f57d838d1c8d (diff)
downloadshaolin-8ac1ca2debb513a13b4ac2c48840d70520fb4b7a.zip
shaolin-8ac1ca2debb513a13b4ac2c48840d70520fb4b7a.tar.gz
add missing requirement
-rw-r--r--README.md66
-rw-r--r--app/Views/maintenance.twig65
-rw-r--r--composer.json1
-rw-r--r--config/.gitignore1
-rw-r--r--db/dump/.gitignore1
5 files changed, 134 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..9674536
--- /dev/null
+++ b/README.md
@@ -0,0 +1,66 @@
+* **Route management**
+ * Create a new route
+ * `php shaolin route:add`
+ * Show routes
+ * `php shaolin route:list`
+ * Search a route
+ * `php shaolin route:find`
+ * Remove a route
+ * `php shaolin route:destroy`
+ * Update a route
+ * `php shaolin route:update`
+ * Create route base
+ * `php shaolin route:generate`
+* **Code generation**
+ * Create a controller
+ * `php shaolin make:controller $name`
+ * Create a view
+ * `php shaolin make:view $name [$dir]`
+ * Create a model
+ * `php shaolin make:model $model $table`
+ * Create a middleware
+ * `php shaolin make:middleware $name`
+* **Database**
+ * Create migration and seeding
+ * `php shaolin db:add $table`
+ * Clean database (drop all tables)
+ * `php shaolin db:clean`
+ * Dump database
+ * `php shaolin dump`
+ * Migrate database
+ * `php shaolin migrate`
+ * Rollback last migration
+ * `php shaolin rollback`
+ * Seed database
+ * `php shaolin seed`
+* **Email**
+ * Generate dkim key (used to sign email)
+ * `php shaolin dkim:generate`
+
+* **Mode**
+ * Turn application in maintenance mode
+ * `php shaolin down`
+ * Turn application in production mode
+ * `php shaolin up`
+
+* **Controllers**
+ * [Available methods](https://git.fumseck.eu/cgit/imperium/tree/imperium/App.php)
+ * [Available helpers](https://git.fumseck.eu/cgit/imperium/tree/helpers)
+
+* **helpers**
+ * Create an admin helper
+ * Edit the `admin.php` inside the `app/Helpers` directory
+ * Create a web helper
+ * Edit the `web.php` inside the `app/Helpers` directory
+
+ * Example
+
+ ```php
+ if(!function_exist('helper'))
+ {
+ function helper()
+ {
+
+ }
+ }
+ ``` \ No newline at end of file
diff --git a/app/Views/maintenance.twig b/app/Views/maintenance.twig
new file mode 100644
index 0000000..1b2e523
--- /dev/null
+++ b/app/Views/maintenance.twig
@@ -0,0 +1,65 @@
+{% extends 'layout.twig' %}
+
+{% block title 'Service Unavailable' %}
+
+{% block description '' %}
+
+{% block css %}
+<style>
+ html, body {
+ background-color: #fff;
+ color: #636b6f;
+ font-family: 'Nunito', sans-serif;
+ font-weight: 100;
+ height: 100vh;
+ margin: 0;
+ }
+
+ .full-height {
+ height: 100vh;
+ }
+
+ .flex-center {
+ align-items: center;
+ display: flex;
+ justify-content: center;
+ }
+
+ .position-ref {
+ position: relative;
+ }
+
+ .code {
+ border-right: 2px solid;
+ font-size: 26px;
+ padding: 0 15px 0 15px;
+ text-align: center;
+ }
+
+ .message {
+ font-size: 18px;
+ text-align: center;
+ }
+ </style>
+{% endblock %}
+
+{% block content %}
+
+ <div class="flex-center position-ref full-height">
+ <div class="code">
+ 503
+ </div>
+
+ <div class="message" style="padding: 10px;">
+ Service Unavailable
+ </div>
+ </div>
+
+
+{% endblock %}
+
+{% block js %}
+
+
+
+{% endblock %}
diff --git a/composer.json b/composer.json
index e71a7e5..da2e220 100644
--- a/composer.json
+++ b/composer.json
@@ -25,6 +25,7 @@
"post-create-project-cmd": [
"cp .env.example .env",
"cp config/db.example.yaml config/db.yaml",
+ "@php shaolin up",
"@php shaolin hello"
]
},
diff --git a/config/.gitignore b/config/.gitignore
index d11fe27..e783c0e 100644
--- a/config/.gitignore
+++ b/config/.gitignore
@@ -1 +1,2 @@
db.yaml
+mode.yaml \ No newline at end of file
diff --git a/db/dump/.gitignore b/db/dump/.gitignore
index e69de29..d1b811b 100644
--- a/db/dump/.gitignore
+++ b/db/dump/.gitignore
@@ -0,0 +1 @@
+*.sql