Added RDBMS info
Canonical names to forced to lowercase Made user model compatible to other DBs CSS adjustments Basic Firepad support (no presence info) Cleaned up JS a bit Added ability to remove draft from localstorage Added support for drafts on multiple pages Alert user if page changes, issue #1
This commit is contained in:
parent
d72ecf10f0
commit
eb12c84e9a
21 changed files with 841 additions and 717 deletions
38
README.md
38
README.md
|
@ -88,7 +88,7 @@ This will ask you questions and create a config.json file in the app root direct
|
|||
Of course you can manually edit this file as well.
|
||||
Any config value set in config.json will override values set in ```realms/config/__init__.py```
|
||||
|
||||
## Nginx Setup
|
||||
### Nginx Setup
|
||||
|
||||
sudo apt-get install -y nginx
|
||||
|
||||
|
@ -130,6 +130,23 @@ Reload Nginx
|
|||
|
||||
sudo service nginx reload
|
||||
|
||||
### Mysql Setup
|
||||
|
||||
sudo apt-get install -y mysql-server mysql-client libmysqlclient-dev
|
||||
realms-wiki pip install python-memcached
|
||||
|
||||
### MariaDB Setup
|
||||
|
||||
sudo apt-get install -y mariadb-server mariadb-client libmariadbclient-dev
|
||||
realms-wiki pip install MySQL-Python
|
||||
|
||||
### Postgres
|
||||
|
||||
sudo apt-get install -y libpq-dev postgresql postgresql-contrib postgresql-client
|
||||
realms-wiki pip install psycopg2
|
||||
|
||||
_Don't forget to create your database._
|
||||
|
||||
## Running
|
||||
|
||||
Current there are different ways.
|
||||
|
@ -153,22 +170,19 @@ http://localhost:5000
|
|||
## Templating
|
||||
|
||||
Realms uses handlebars partials to create templates.
|
||||
Each page that you create is a potential partial.
|
||||
Each page that you create can be imported as a partial.
|
||||
|
||||
Let's create the following partial:
|
||||
This page imports and uses a partial:
|
||||
|
||||
http://localhost:5000/_create/my-partial
|
||||
http://realms.io/_edit/hbs
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">{{ heading }}</div>
|
||||
<div class="panel-body">
|
||||
{{ body }}
|
||||
</div>
|
||||
</div>
|
||||
This page contains the content of the partial:
|
||||
|
||||
Don't forget to save it.
|
||||
http://realms.io/_edit/example-tmpl
|
||||
|
||||
I locked these pages to preserve them.
|
||||
You may copy and paste into a new page to test.
|
||||
|
||||
Now
|
||||
## Author
|
||||
|
||||
Matthew Scragg <scragg@gmail.com>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue