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.4.tar.gz
(49.6 kB
view details)
Built Distribution
File details
Details for the file c2cgeoportal_admin-2.3.4.tar.gz
.
File metadata
- Download URL: c2cgeoportal_admin-2.3.4.tar.gz
- Upload date:
- Size: 49.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4993cac637f958afa7cef75b86efc70be87a72fba9344a4cd45e43403065329e |
|
MD5 | 5f7aceb0e88d1719b75c86c0d8643b25 |
|
BLAKE2b-256 | b47f0bd32a3bc3610d78f09aba1fc86b37ad86790f259af2f480694df47a766d |
Provenance
File details
Details for the file c2cgeoportal_admin-2.3.4-py2-none-any.whl
.
File metadata
- Download URL: c2cgeoportal_admin-2.3.4-py2-none-any.whl
- Upload date:
- Size: 82.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf650bae24ff30737d499fc4f02f6e24cd35018b30366690ca224600c6938a4b |
|
MD5 | d23f8b979419c8979e80476e5af4d65e |
|
BLAKE2b-256 | f021e54e287e71020a814f5758fa626ba66358539694798cef36bdaf47c803c5 |