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.10.tar.gz
(79.4 kB
view details)
Built Distribution
terra_common-0.2.10-py3-none-any.whl
(141.1 kB
view details)
File details
Details for the file terra-common-0.2.10.tar.gz
.
File metadata
- Download URL: terra-common-0.2.10.tar.gz
- Upload date:
- Size: 79.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a31329e4f81a5700ae757b5161d42035265b499ae03295b2d6cedf3f15181dc0 |
|
MD5 | 7cc33ef6fa476fe0642634ccb8f360f1 |
|
BLAKE2b-256 | cab6ebc56d748c4ea275646f21e57ad9c63e9cd8e3aff40c77273cfb8ef00c67 |
File details
Details for the file terra_common-0.2.10-py3-none-any.whl
.
File metadata
- Download URL: terra_common-0.2.10-py3-none-any.whl
- Upload date:
- Size: 141.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b625dbb513f89dbfcb5349484a38af191894e79c87b027e4028130605aa671ea |
|
MD5 | 3a47dde143364f5d074ef1e25d5fc894 |
|
BLAKE2b-256 | 1f4094de2ef1d1abaf9975f3e7d9714f8e601a8b0fc8ca657558c78a5a5ef913 |