c2cgeoportal admin
Project description
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"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for c2cgeoportal_admin-2.4.0.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0067328acf0c29197b1800d7824ba6fa12cbfdb6cd143714689bc8da5ceb9702 |
|
MD5 | d8c9eba988b3b446a20dbc7692b9eeb3 |
|
BLAKE2b-256 | e1001b67391513592695d4789f93a42419650df4ef30cb4c38f77994bba95814 |
Close
Hashes for c2cgeoportal_admin-2.4.0.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74e11041d2144164c37af9ce08f0383f75dddba7365c1da719ea7fe63888fded |
|
MD5 | f6e480f3052b6d3a31b3b154b9615fdd |
|
BLAKE2b-256 | 2db9273627151f3c74495be47c082960f1b88ff45caeb8f97661be84a4457e41 |