# c2cgeoportal_admin
### Checkout
```
git clone git@github.com:camptocamp/c2cgeoportal.git
cd admin
```
### Set up the database
```
sudo -u postgres psql -c "CREATE USER \"www-data\" WITH PASSWORD 'www-data';"
DATABASE=c2cgeoportal
sudo -u postgres psql -c "CREATE DATABASE $DATABASE WITH OWNER \"www-data\";"
sudo -u postgres psql -d $DATABASE -c "CREATE EXTENSION postgis;"
```
Optionally update sqlachemy.url in development.ini or production.ini then:
```
admin/.build/venv/bin/python3 commons/c2cgeoportal_commons/testing/initializedb.py # to create the database
# or
sudo -u postgres psql -d c2cgeoportal -f ./docker/demo-dump.sql # to create and populate the database (demo data)
```
### Run the development web server
```
make serve
```
Open http://localhost:6543/users/
## Run the tests
### Install the selenium chrome driver
https://sites.google.com/a/chromium.org/chromedriver/downloads
### Requires Chrome Version > 65
### Create the test database
```
sudo -u postgres psql -c "CREATE USER \"www-data\" WITH PASSWORD 'www-data';"
DATABASE=geomapfish_tests
sudo -u postgres psql -c "CREATE DATABASE $DATABASE WITH OWNER \"www-data\";"
sudo -u postgres psql -d $DATABASE -c "CREATE EXTENSION postgis;"
```
### Run the tests
```
make test
```
Note that you can run all tests but selenium ones (really fast):
```
.build/venv/bin/pytest -m "not selenium"
```
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共97个文件
py:57个
pt:13个
jinja2:8个
资源分类:Python库 所属语言:Python 资源全名:c2cgeoportal_admin-2.3.5.27.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
c2cgeoportal_admin-2.3.5.27.tar.gz (97个子文件)
c2cgeoportal_admin-2.3.5.27
MANIFEST.in 118B
PKG-INFO 2KB
requirements-dev.txt 65B
setup.cfg 132B
c2cgeoportal_admin.egg-info
PKG-INFO 2KB
requires.txt 252B
not-zip-safe 1B
SOURCES.txt 4KB
entry_points.txt 52B
top_level.txt 36B
dependency_links.txt 1B
requirements.txt 391B
setup.py 3KB
README.md 1KB
c2cgeoportal_admin
subscribers.py 773B
templates
navigation_navbar.jinja2 2KB
edit.jinja2 163B
navigation_vertical.jinja2 521B
index.jinja2 866B
404.jinja2 281B
layertree.jinja2 8KB
layout.jinja2 3KB
widgets
restriction_area_fields.pt 807B
metadata.pt 2KB
metadatas.pt 353B
role_fields.pt 1KB
dimensions.pt 88B
layer_group_fields.pt 1KB
theme_fields.pt 2KB
child.pt 619B
dimension.pt 1KB
ogcserver_fields.pt 601B
children.pt 5KB
layer_v1_fields.pt 3KB
layer_fields.pt 2KB
home.jinja2 377B
locale
de
LC_MESSAGES
c2cgeoportal_admin.mo 6KB
fr
LC_MESSAGES
c2cgeoportal_admin.mo 6KB
it
LC_MESSAGES
c2cgeoportal_admin.mo 380B
static
navbar.css 1KB
theme.css 687B
layertree.css 2KB
schemas
restriction_areas.py 789B
map.py 576B
functionalities.py 921B
metadata.py 4KB
interfaces.py 744B
__init__.py 0B
roles.py 736B
dimensions.py 511B
treegroup.py 3KB
treeitem.py 504B
views
layertree.py 6KB
themes_ordering.py 3KB
restriction_areas.py 3KB
treeitems.py 2KB
functionalities.py 2KB
layer_groups.py 2KB
layers_wms.py 5KB
users.py 3KB
home.py 193B
layers_wmts.py 5KB
interfaces.py 2KB
__init__.py 0B
ogc_servers.py 2KB
themes.py 4KB
layers.py 1KB
roles.py 3KB
layers_v1.py 3KB
dimension_layers.py 839B
__init__.py 3KB
widgets.py 3KB
routes.py 3KB
acceptance_tests
themes_ordering.py 1KB
learn_test.py 2KB
user_test.py 11KB
conftest.py 2KB
layers_wmts_test.py 12KB
role_test.py 10KB
restriction_areas_test.py 6KB
selenium
__init__.py 0B
page.py 4KB
home_test.py 413B
treegroup_tests.py 593B
layers_wms_test.py 20KB
ogc_servers_test.py 5KB
layers_v1_test.py 12KB
__init__.py 9KB
layertree_test.py 12KB
edit_url_test.py 5KB
themes_test.py 15KB
left_menu_test.py 922B
metadatas_test.py 11KB
functionalities_test.py 4KB
interface_test.py 5KB
main_test.py 348B
layer_groups_test.py 13KB
共 97 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 高效MySQL查询加速指南:索引策略、查询优化、性能调优,助力数据库管理员和开发者突破性能瓶颈
- ARM Limited 发布的《RealView 编译工具 4.0 版编译器参考指南》
- 《2024音视频技术发展报告》,由LiveVideoStack出品,旨在深入了解流媒体和RTC(实时通信技术)的从业情情况
- 2023-04-06-项目笔记 - 第一百二十五阶段 - 4.4.2.123全局变量的作用域-123 -2024.05.06
- 多维因素与学生辍学风险预测数据集
- MATLAB编程高效实战:涵盖核心数学、科学计算、数据可视化及算法应用,助力工程师与研究人员的必备函数代码集
- halcon 3D图像重建
- 现有student.txt和student-score.txt 将两个文件上传到hdfs上 使用Map/Reduce框架完成下面
- 测试数据如下 1)文件一:data01.txt,内容:Beijing is beautiful I love Beijing
- 1_notepad_share_encrypt.hdoc..bin
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功