snovault混合对象关系数据库框架
snovault的Python项目详细描述
=======
snovault json-ld数据库框架
=======
0.22版
|构建状态图像::https://travis-ci.org/encode-dcc/snovault.png?分支=主
…_构建状态:https://travis ci.org/encode-dcc/snovault
对于Linux,查看cloud-config.yml应该可以很容易地推断出步骤0:安装Xcode(从应用程序商店)和自制:http://brew.sh:
步骤1:验证自制是否正常工作:
$sudo brew doctor
步骤2:安装或更新依赖项:
$brew安装libevent libmagic libxml2 libxslt openssl postgresql graphviz nginx python3
$brew安装freetype libjpeg libtiff littlecms webp;枕头需要
$brew tap自制/版本
$brew安装elasticsearch17node4 lts
注意:
如果您对postgres或它的python接口(psycogpg2)有问题,您可能需要通过自制程序安装postgresql
(如上所述)
如果您对枕头有问题,您可能需要安装新的xcode命令行工具:
-首先从appstore更新xcode(重新启动)
$xcode select--install
或者更新依赖项:
$make clean
,然后转到步骤3。
步骤4:在一个终端中本地启动应用程序
in one terminal startup the database servers and nginx proxy with::
$bin/dev servers development.ini--app name app--clear--init--加载
这将首先清除/tmp/雪花中的任何现有数据。
然后将在/tmp/雪花中启动Postgres和ElasticSearch服务器。
将启动在端口8000上运行的nginx代理。
服务器已启动,最后加载测试集。
使用以下命令运行应用程序:
$bin/pserve development.ini
然后将在类似于生产设置的后台线程中进行索引。
浏览http://localhost:8000/
运行测试本地::
$bin/test-k test\u name
使用调试器运行::
$bin/test-pdb
>针对架构更改在本地运行的特定测试::
$bin/test-k test\u加载工作簿
bdd"
使用::
$bin/test-m bdd-v--splinter webdriver chrome
使用::
$npm test
运行javascript测试,或者如果需要提供命令行参数::
$./节点模块/.bin/jest
javascript
======
我们的javascript使用es6和jsx编写,因此需要使用babel和webpack编译。请执行以下操作:
$npm run build
(这也是运行buildout的一部分。)
若要生成开发包并在编辑源文件时继续更新它们,请运行::
为了加快建设速度。
sass/compass的注意事项
====
我们使用"sass<;http://sass-lang.com/>;"和"compass<;http://compass style.org/>;` css预处理器。
构建安装sass和compass实用程序并编译css。
更改scss源文件时,必须重新编译e css使用以下方法之一:
compileing"on the fly"
——
要开始此操作,从项目的根目录(config.rb所在的位置)执行以下操作:
$bin/compass watch
(目前,它被设置为minify。)
强制编译
----
::
$bin/compass compile
http://compass style.org/help/tutorials/command-line/>;``和`配置参考<;http://compass style.org/help/tutorials/configuration-reference/>;`.
当然还有::
$bin/指南针帮助
sublimiter
===
首先安装linter::
$easy_install-2.7 flake8
$npm install-g jshint
$npm install-g jsxhint
使用它在Sublime文本3中安装以下软件包:
*SublimeLineter
*SublimeLineter-Flake8
*SublimeLineter jsxhint
*jsx
*SublimeLineter jshint
。_`包控制":https://sublime.wbond.net/
0.20-修补mpindexer以获得更好的错误消息
0.21-(pypi错误,与0.22相同)
0.22-新版图像魔术,修复sauce labs
0.23-替换copy.deepcopy()以获得更快的索引
snovault json-ld数据库框架
=======
0.22版
|构建状态图像::https://travis-ci.org/encode-dcc/snovault.png?分支=主
…_构建状态:https://travis ci.org/encode-dcc/snovault
对于Linux,查看cloud-config.yml应该可以很容易地推断出步骤0:安装Xcode(从应用程序商店)和自制:http://brew.sh:
步骤1:验证自制是否正常工作:
$sudo brew doctor
步骤2:安装或更新依赖项:
$brew安装libevent libmagic libxml2 libxslt openssl postgresql graphviz nginx python3
$brew安装freetype libjpeg libtiff littlecms webp;枕头需要
$brew tap自制/版本
$brew安装elasticsearch17node4 lts
注意:
如果您对postgres或它的python接口(psycogpg2)有问题,您可能需要通过自制程序安装postgresql
(如上所述)
如果您对枕头有问题,您可能需要安装新的xcode命令行工具:
-首先从appstore更新xcode(重新启动)
$xcode select--install
或者更新依赖项:
$make clean
,然后转到步骤3。
步骤4:在一个终端中本地启动应用程序
in one terminal startup the database servers and nginx proxy with::
$bin/dev servers development.ini--app name app--clear--init--加载
这将首先清除/tmp/雪花中的任何现有数据。
然后将在/tmp/雪花中启动Postgres和ElasticSearch服务器。
将启动在端口8000上运行的nginx代理。
服务器已启动,最后加载测试集。
使用以下命令运行应用程序:
$bin/pserve development.ini
然后将在类似于生产设置的后台线程中进行索引。
浏览http://localhost:8000/
运行测试本地::
$bin/test-k test\u name
使用调试器运行::
$bin/test-pdb
>针对架构更改在本地运行的特定测试::
$bin/test-k test\u加载工作簿
bdd"
使用::
$bin/test-m bdd-v--splinter webdriver chrome
使用::
$npm test
运行javascript测试,或者如果需要提供命令行参数::
$./节点模块/.bin/jest
javascript
======
我们的javascript使用es6和jsx编写,因此需要使用babel和webpack编译。请执行以下操作:
$npm run build
(这也是运行buildout的一部分。)
若要生成开发包并在编辑源文件时继续更新它们,请运行::
为了加快建设速度。
sass/compass的注意事项
====
我们使用"sass<;http://sass-lang.com/>;"和"compass<;http://compass style.org/>;` css预处理器。
构建安装sass和compass实用程序并编译css。
更改scss源文件时,必须重新编译e css使用以下方法之一:
compileing"on the fly"
——
$bin/compass watch
(目前,它被设置为minify。)
强制编译
----
::
$bin/compass compile
http://compass style.org/help/tutorials/command-line/>;``和`配置参考<;http://compass style.org/help/tutorials/configuration-reference/>;`.
当然还有::
$bin/指南针帮助
sublimiter
===
首先安装linter::
$easy_install-2.7 flake8
$npm install-g jshint
$npm install-g jsxhint
使用它在Sublime文本3中安装以下软件包:
*SublimeLineter
*SublimeLineter-Flake8
*SublimeLineter jsxhint
*jsx
*SublimeLineter jshint
。_`包控制":https://sublime.wbond.net/
0.20-修补mpindexer以获得更好的错误消息
0.21-(pypi错误,与0.22相同)
0.22-新版图像魔术,修复sauce labs
0.23-替换copy.deepcopy()以获得更快的索引