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.1.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43c92992f1a485e9bf00633c45c64d8d0dd18b08fb3ecbf871f07915d21d1b27 |
|
MD5 | a157e339e57c8c4ee2b819f8eb50e34e |
|
BLAKE2b-256 | 2a116962a6c9b3da94bc505e5768fb648b9b1a8468c2dd357f43a8834d4b53f9 |
Close
Hashes for c2cgeoportal_admin-2.4.1.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea020a76c4a13ea11430f0f7abfa6353fed4db5a2e145fe02c0e2eaa224c79c7 |
|
MD5 | 3462ef2ec1b0b42c44ef79bef3f478a1 |
|
BLAKE2b-256 | 65dc618beff67d567ac167ce6a9d1a2f7e82cbdb2cbadc884c6a00c3dc28c912 |