c2cgeoportal admin
Project description
# c2cgeoportal_admin
## Run with docker
To build:
```
make docker-build
```
To build & run the application:
```
make docker-serve
```
Open http://localhost:8888/
The following views are also provided by `c2cwsgiutils`:
* http://localhost:8888/versions.json
* http://localhost:8888/stats.json
* http://localhost:8888/health_check?max_level=3
## Run without docker
### 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:
```
use common/testing/initialized.py to create the database
use 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"
```
## Run with docker
To build:
```
make docker-build
```
To build & run the application:
```
make docker-serve
```
Open http://localhost:8888/
The following views are also provided by `c2cwsgiutils`:
* http://localhost:8888/versions.json
* http://localhost:8888/stats.json
* http://localhost:8888/health_check?max_level=3
## Run without docker
### 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:
```
use common/testing/initialized.py to create the database
use 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
Built Distribution
Close
Hashes for c2cgeoportal_admin-2.3.0.dev11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee0120d29f4c42f191c888f8a16bfb84bcaa545e25c26a8792cbc197a8712559 |
|
MD5 | 65be9cab78cc33a5a2f1e0d3686fe6c5 |
|
BLAKE2b-256 | a40fb01ee08699cc7b1ba48a7abb9d2f01398c1aace65be53208630f08876812 |
Close
Hashes for c2cgeoportal_admin-2.3.0.dev11-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a0116de81f641e17bb57dd37ab5f8433cfabce6aacc42eb8daf631fbe4145df |
|
MD5 | bef747250d540eae11acd9e950fe67b4 |
|
BLAKE2b-256 | 713f7f64b7d949ca356b796db2d1e64f8a30d53c8fb1765d1ea725fd948ab1f7 |