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
c2cgeoportal_admin-2.4.1.1.tar.gz
(55.9 kB
view hashes)
Built Distribution
Close
Hashes for c2cgeoportal_admin-2.4.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2ff788fa58701ccc00f8eed37ac3bd649c7520738c5f4057f694f1aa863c407 |
|
MD5 | 0b098ea6aa1c28e90c6075f0decbde10 |
|
BLAKE2b-256 | 12b82a2604a8d763b9d2872dc7e37c3a3948ae1a07642a50eef24f6659549825 |
Close
Hashes for c2cgeoportal_admin-2.4.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aa1bebad7f6fe5c52dc3e1caad6112149fc8b6e6b4e0bcc39b5ef998d6d1eab |
|
MD5 | f18c1433cfe564dcc3b22de1e08bb660 |
|
BLAKE2b-256 | e13ac4f9532aca4e828a65ac00eace4b42c6e65802b112ecc03f27dd10602935 |