mirror of
https://github.com/YunoHost-Apps/dont-code_ynh.git
synced 2024-09-03 18:26:34 +02:00
Merge pull request #51 from YunoHost-Apps/dev
Cors support fix & Mongo install cleanup
This commit is contained in:
commit
12d4531262
11 changed files with 82 additions and 17 deletions
|
@ -4,3 +4,4 @@
|
||||||
- [Irakurri README euskaraz](README_eu.md)
|
- [Irakurri README euskaraz](README_eu.md)
|
||||||
- [Lire le README en français](README_fr.md)
|
- [Lire le README en français](README_fr.md)
|
||||||
- [Le o README en galego](README_gl.md)
|
- [Le o README en galego](README_gl.md)
|
||||||
|
- [阅读中文(简体)的 README](README_zh_Hans.md)
|
||||||
|
|
|
@ -32,7 +32,7 @@ This Yunohost app installs the server part (services + mongo database) needed to
|
||||||
- As well any documents or images uploaded by users will be backed up
|
- As well any documents or images uploaded by users will be backed up
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 0.3.1~ynh2
|
**Shipped version:** 0.3.1~ynh4
|
||||||
|
|
||||||
**Demo:** <https://dont-code.net/apps.html>
|
**Demo:** <https://dont-code.net/apps.html>
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ This Yunohost app installs the server part (services + mongo database) needed to
|
||||||
- As well any documents or images uploaded by users will be backed up
|
- As well any documents or images uploaded by users will be backed up
|
||||||
|
|
||||||
|
|
||||||
**Paketatutako bertsioa:** 0.3.1~ynh2
|
**Paketatutako bertsioa:** 0.3.1~ynh4
|
||||||
|
|
||||||
**Demoa:** <https://dont-code.net/apps.html>
|
**Demoa:** <https://dont-code.net/apps.html>
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ This Yunohost app installs the server part (services + mongo database) needed to
|
||||||
- As well any documents or images uploaded by users will be backed up
|
- As well any documents or images uploaded by users will be backed up
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 0.3.1~ynh2
|
**Version incluse :** 0.3.1~ynh4
|
||||||
|
|
||||||
**Démo :** <https://dont-code.net/apps.html>
|
**Démo :** <https://dont-code.net/apps.html>
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ This Yunohost app installs the server part (services + mongo database) needed to
|
||||||
- As well any documents or images uploaded by users will be backed up
|
- As well any documents or images uploaded by users will be backed up
|
||||||
|
|
||||||
|
|
||||||
**Versión proporcionada:** 0.3.1~ynh2
|
**Versión proporcionada:** 0.3.1~ynh4
|
||||||
|
|
||||||
**Demo:** <https://dont-code.net/apps.html>
|
**Demo:** <https://dont-code.net/apps.html>
|
||||||
|
|
||||||
|
|
65
README_zh_Hans.md
Normal file
65
README_zh_Hans.md
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
<!--
|
||||||
|
注意:此 README 由 <https://github.com/YunoHost/apps/tree/master/tools/readme_generator> 自动生成
|
||||||
|
请勿手动编辑。
|
||||||
|
-->
|
||||||
|
|
||||||
|
# YunoHost 的 Dont-code Services
|
||||||
|
|
||||||
|
[](https://dash.yunohost.org/appci/app/dont-code)  
|
||||||
|
|
||||||
|
[](https://install-app.yunohost.org/?app=dont-code)
|
||||||
|
|
||||||
|
*[阅读此 README 的其它语言版本。](./ALL_README.md)*
|
||||||
|
|
||||||
|
> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 Dont-code Services。*
|
||||||
|
> *如果您还没有 YunoHost,请参阅[指南](https://yunohost.org/install)了解如何安装它。*
|
||||||
|
|
||||||
|
## 概况
|
||||||
|
|
||||||
|
Dont-code is a low-code / no-code platform letting user create their own applications based on complete feature sets developed by IT.
|
||||||
|
You can find more information here: https://dont-code.net
|
||||||
|
|
||||||
|
This Yunohost app installs the server part (services + mongo database) needed to run the dont-code applications.
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
- Thanks to the Powerful [Builders](https://dont-code.net/ide-ui) and [Previewers](https://dont-code.net/ide-ui), a user can directly design its application and immediately see the result
|
||||||
|
- One only needs to describe its application by filling sentences prepared by the platform.
|
||||||
|
- By default it provides support for images, currency, text, numbers, countries, links.
|
||||||
|
- Multiple plugins allow you to list, edit, make reports, call services, save to database, save in browser, and so on...
|
||||||
|
- Plugins can be developed by any IT team
|
||||||
|
- Projects and all user's data are backuped up as part of the Yunohost backup process
|
||||||
|
- As well any documents or images uploaded by users will be backed up
|
||||||
|
|
||||||
|
|
||||||
|
**分发版本:** 0.3.1~ynh4
|
||||||
|
|
||||||
|
**演示:** <https://dont-code.net/apps.html>
|
||||||
|
|
||||||
|
## 截图
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## 文档与资源
|
||||||
|
|
||||||
|
- 官方应用网站: <https://dont-code.net>
|
||||||
|
- 官方用户文档: <https://dont-code.net/news.html>
|
||||||
|
- 官方管理文档: <https://dont-code.net/developers.html>
|
||||||
|
- 上游应用代码库: <https://github.com/dont-code>
|
||||||
|
- YunoHost 商店: <https://apps.yunohost.org/app/dont-code>
|
||||||
|
- 报告 bug: <https://github.com/YunoHost-Apps/dont-code_ynh/issues>
|
||||||
|
|
||||||
|
## 开发者信息
|
||||||
|
|
||||||
|
请向 [`testing` 分支](https://github.com/YunoHost-Apps/dont-code_ynh/tree/testing) 发送拉取请求。
|
||||||
|
|
||||||
|
如要尝试 `testing` 分支,请这样操作:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo yunohost app install https://github.com/YunoHost-Apps/dont-code_ynh/tree/testing --debug
|
||||||
|
或
|
||||||
|
sudo yunohost app upgrade dont-code -u https://github.com/YunoHost-Apps/dont-code_ynh/tree/testing --debug
|
||||||
|
```
|
||||||
|
|
||||||
|
**有关应用打包的更多信息:** <https://yunohost.org/packaging_apps>
|
|
@ -1,4 +1,5 @@
|
||||||
quarkus_http_host=127.0.0.1
|
quarkus_http_host=127.0.0.1
|
||||||
|
quarkus_http_cors=false
|
||||||
quarkus_mongodb_projects_connection_string=mongodb://__DB_USER__:__DB_PWD__@localhost:27017/?authSource=dontCode__TENANT__Projects
|
quarkus_mongodb_projects_connection_string=mongodb://__DB_USER__:__DB_PWD__@localhost:27017/?authSource=dontCode__TENANT__Projects
|
||||||
projects_database_name=dontCode__TENANT__Projects
|
projects_database_name=dontCode__TENANT__Projects
|
||||||
quarkus_mongodb_data_connection_string=mongodb://__DB_USER__:__DB_PWD__@localhost:27017/?authSource=dontCode__TENANT__Data
|
quarkus_mongodb_data_connection_string=mongodb://__DB_USER__:__DB_PWD__@localhost:27017/?authSource=dontCode__TENANT__Data
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
"$schema": "https://dont-code.net/schemas/v1/repository-schema.json",
|
"$schema": "https://dont-code.net/schemas/v1/repository-schema.json",
|
||||||
"name": "Next Repository __TENANT__",
|
"name": "Next Repository __TENANT__",
|
||||||
"description": "Repository provided by Dont-code offering next versions of all plugins",
|
"description": "Repository provided by Dont-code offering next versions of all plugins",
|
||||||
|
"ideWebSocketUrl": "ws://__DOMAIN____PATH__/ide",
|
||||||
"webSocketUrl": "ws://__DOMAIN____PATH__/preview",
|
"webSocketUrl": "ws://__DOMAIN____PATH__/preview",
|
||||||
"storeApiUrl": "https://__DOMAIN____PATH__/data",
|
"storeApiUrl": "https://__DOMAIN____PATH__/data",
|
||||||
"projectApiUrl": "https://__DOMAIN____PATH__/project",
|
"projectApiUrl": "https://__DOMAIN____PATH__/project",
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
"$schema": "https://dont-code.net/schemas/v1/repository-schema.json",
|
"$schema": "https://dont-code.net/schemas/v1/repository-schema.json",
|
||||||
"name": "Stable Repository __TENANT__",
|
"name": "Stable Repository __TENANT__",
|
||||||
"description": "Repository provided by Dont-code using stable versions of plugins",
|
"description": "Repository provided by Dont-code using stable versions of plugins",
|
||||||
|
"ideWebSocketUrl": "ws://__DOMAIN____PATH__/ide",
|
||||||
"webSocketUrl": "ws://__DOMAIN____PATH__/preview",
|
"webSocketUrl": "ws://__DOMAIN____PATH__/preview",
|
||||||
"storeApiUrl": "https://__DOMAIN____PATH__/data",
|
"storeApiUrl": "https://__DOMAIN____PATH__/data",
|
||||||
"projectApiUrl": "https://__DOMAIN____PATH__/project",
|
"projectApiUrl": "https://__DOMAIN____PATH__/project",
|
||||||
|
|
|
@ -7,7 +7,7 @@ name = "Dont-code Services"
|
||||||
description.en = "Install services and databases needed to support Dont-code platform"
|
description.en = "Install services and databases needed to support Dont-code platform"
|
||||||
description.fr = "Installe les services et base de données nécessaires pour utiliser la plateforme Dont-code"
|
description.fr = "Installe les services et base de données nécessaires pour utiliser la plateforme Dont-code"
|
||||||
|
|
||||||
version = "0.3.1~ynh2"
|
version = "0.3.1~ynh4"
|
||||||
|
|
||||||
maintainers = ["Dont-code Team"]
|
maintainers = ["Dont-code Team"]
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
readonly YNH_DEFAULT_MONGO_VERSION=4.4
|
readonly YNH_DEFAULT_MONGO_VERSION=6.0
|
||||||
# Declare the actual MongoDB version to use: 4.4 ; 5.0 ; 6.0
|
# Declare the actual MongoDB version to use: 4.4 ; 5.0 ; 6.0 ; 7.0
|
||||||
# A packager willing to use another version of MongoDB can override the variable into its _common.sh.
|
# A packager willing to use another version of MongoDB can override the variable into its _common.sh.
|
||||||
YNH_MONGO_VERSION=${YNH_MONGO_VERSION:-$YNH_DEFAULT_MONGO_VERSION}
|
YNH_MONGO_VERSION=${YNH_MONGO_VERSION:-$YNH_DEFAULT_MONGO_VERSION}
|
||||||
|
|
||||||
|
@ -320,12 +320,8 @@ ynh_install_mongo() {
|
||||||
ynh_print_warn --message="Installing Mongo 4.4 as $mongo_version is not compatible with your cpu (see https://docs.mongodb.com/manual/administration/production-notes/#x86_64)."
|
ynh_print_warn --message="Installing Mongo 4.4 as $mongo_version is not compatible with your cpu (see https://docs.mongodb.com/manual/administration/production-notes/#x86_64)."
|
||||||
mongo_version="4.4"
|
mongo_version="4.4"
|
||||||
fi
|
fi
|
||||||
if [[ "$mongo_version" == "4.4" && "$mongo_debian_release" != "buster" ]]; then
|
|
||||||
ynh_print_warn --message="Switched to buster install as Mongo 4.4 is not compatible with $mongo_debian_release."
|
|
||||||
mongo_debian_release=buster
|
|
||||||
fi
|
|
||||||
|
|
||||||
ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc"
|
ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="mongodb-org" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc"
|
||||||
mongodb_servicename=mongod
|
mongodb_servicename=mongod
|
||||||
|
|
||||||
# Make sure MongoDB is started and enabled
|
# Make sure MongoDB is started and enabled
|
||||||
|
|
Loading…
Add table
Reference in a new issue