Skip to main content

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.3.5.43.tar.gz (54.4 kB view details)

Uploaded Source

Built Distribution

c2cgeoportal_admin-2.3.5.43-py3-none-any.whl (97.8 kB view details)

Uploaded Python 3

File details

Details for the file c2cgeoportal_admin-2.3.5.43.tar.gz.

File metadata

File hashes

Hashes for c2cgeoportal_admin-2.3.5.43.tar.gz
Algorithm Hash digest
SHA256 5f3319796f4181f316be380725d1807f6291e13b0b5bac9b2c054569c3e9bce4
MD5 2128573f7a9a41df9f58a0a8cc9c445c
BLAKE2b-256 7058819efdc0d5fca5361b97aca85652932383be8b395617b2c65609cd558b0e

See more details on using hashes here.

Provenance

File details

Details for the file c2cgeoportal_admin-2.3.5.43-py3-none-any.whl.

File metadata

File hashes

Hashes for c2cgeoportal_admin-2.3.5.43-py3-none-any.whl
Algorithm Hash digest
SHA256 38405f008f4707828a093c945a4c2bd0ca78d187496447fad0d12a257c67581f
MD5 d94d9cbdac344b76558e06dd3767c7cf
BLAKE2b-256 c8346116fc79d6c8e24af638d46dfff6d8e39a5deb57033f7bfade0bfdefb40e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page