The Terra API
Project description
This is the Terra API.
Requirements
On Ubuntu, do not use the system packages, which are too old.
- docker-ce: https://docs.docker.com/install/linux/docker-ce/ubuntu/
- docker-compose:
sudo pip3 install docker-compose
Usage
First launch
Create a docker.env file:
mv docker.env.dist docker.env
- Edit the settings
Build Container
docker-compose build
Running the project
docker-compose up
docker-compose down
docker-compose up
(postgres image)
Running tests
docker-compose exec django bash
django@container_id:/code$ source venv/bin/activate
(venv) django@353cfc271a48:/code$ tox
(global)
(venv) django@353cfc271a48:/code$ tox terracommon.terra
(pour terra)
Applying Django migrations
docker-compose run --rm django /code/venv/bin/python3.6 ./manage.py migrate
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
terra-common-0.2.3.tar.gz
(79.0 kB
view details)
Built Distribution
terra_common-0.2.3-py3-none-any.whl
(140.6 kB
view details)
File details
Details for the file terra-common-0.2.3.tar.gz
.
File metadata
- Download URL: terra-common-0.2.3.tar.gz
- Upload date:
- Size: 79.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e903d7c59689f677bf7f4b4a9478583a2a69c944985b6ca9911b946a3b46437e |
|
MD5 | 59a87b1318edccc61badef4a25a62a09 |
|
BLAKE2b-256 | 7b0f35d963c7d6fa384b71b1a22106bb4a66ebef481ab037587ee755be410acb |
File details
Details for the file terra_common-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: terra_common-0.2.3-py3-none-any.whl
- Upload date:
- Size: 140.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36b945489182c945217de48413491a7e8c8ff7a20dd7b0ae3c57263ba65c907e |
|
MD5 | 9e05c536c4eaa06dfc142b0a38ffd18b |
|
BLAKE2b-256 | aff6f6c0aea263e14bf15ac17f2671e220887c96b68ba3a87b19a1a9adffbad5 |