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

History Node

2.3.2.dev3

History Node

2.3.2.dev2

History Node

2.3.2.dev1

This version
History Node

2.3.1

History Node

2.3.1.dev4

History Node

2.3.1.dev3

History Node

2.3.1.dev2

History Node

2.3.1.dev1

History Node

2.3.0

History Node

2.3.0rc1

History Node

2.3.0.dev22

History Node

2.3.0.dev20

History Node

2.3.0.dev19

History Node

2.3.0.dev18

History Node

2.3.0.dev17

History Node

2.3.0.dev16

History Node

2.3.0.dev13

History Node

2.3.0.dev12

History Node

2.3.0.dev11

History Node

2.3.0.dev7

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
c2cgeoportal_admin-2.3.1-py2-none-any.whl (82.8 kB) Copy SHA256 hash SHA256 Wheel 2.7 Jun 22, 2018
c2cgeoportal_admin-2.3.1.tar.gz (49.6 kB) Copy SHA256 hash SHA256 Source None Jun 22, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page