After installing install
, in your terminal, call the new command in the root folder of your web server :
A simple project
Ubiquity new projectName
A project with UbiquityMyAdmin interface
Ubiquity new projectName -a
A project with bootstrap and semantic-ui themes installed
Ubiquity new projectName --themes=bootstrap,semantic
short name | name | role | default | Allowed values | Since devtools |
---|---|---|---|---|---|
|
dbName | Sets the database name. | |||
|
serverName | Defines the db server address. |
|
||
|
port | Defines the db server port. |
|
||
|
user | Defines the db server user. |
|
||
|
password | Defines the db server password. |
|
||
|
themes | Install themes. | semantic,bootstrap,foundation | ||
|
all-models | Creates all models from db. |
|
||
|
admin | Adds UbiquityMyAdmin interface. |
|
||
|
siteUrl | Defines the site URL. | http://127.0.0.1/{projectname} | 1.2.6 | |
|
rewriteBase | Sets the base for rewriting. |
|
1.2.6 |
Example of creation of the blog project, connected to the blogDb database, with generation of all models
Ubiquity new blog -b=blogDb -m=true
Example of creation of the blog project, connected to the bogDb database, with generation of all models and integration of semantic theme
Ubiquity new blog --dbName=blogDb --all-models=true --themes=semantic
To start the embedded web server and test your pages, run from the application root folder:
Ubiquity serve
The web server is started at 127.0.0.1:8090