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"
```
### 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.1.tar.gz
(49.6 kB
view details)
Built Distribution
File details
Details for the file c2cgeoportal_admin-2.3.1.tar.gz
.
File metadata
- Download URL: c2cgeoportal_admin-2.3.1.tar.gz
- Upload date:
- Size: 49.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa09c8336467cce3aca8b28d2fb2166de9533b19f9ac41887315cf9da2bed014 |
|
MD5 | 8354e1f96d5bfce2069fda24d27b0b20 |
|
BLAKE2b-256 | 44ef6d02c9f8540da82f2cf1401c66b6bfeed820da18d7456a3d31aebb310399 |
File details
Details for the file c2cgeoportal_admin-2.3.1-py2-none-any.whl
.
File metadata
- Download URL: c2cgeoportal_admin-2.3.1-py2-none-any.whl
- Upload date:
- Size: 82.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f32d0028cc8580061db356c83ba96c8670adf59c0e29c866a1a6137ce160eb5 |
|
MD5 | b472489e536997227c417df1982cf6e4 |
|
BLAKE2b-256 | 1f1fed35275cd959586ff2326955ee236de99e4c084fd71125132de5b5b013aa |