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.5.tar.gz
(79.4 kB
view details)
Built Distribution
terra_common-0.2.5-py3-none-any.whl
(141.2 kB
view details)
File details
Details for the file terra-common-0.2.5.tar.gz
.
File metadata
- Download URL: terra-common-0.2.5.tar.gz
- Upload date:
- Size: 79.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.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 | 75ea58c432f6ca8499524d496695f35a3215b85bac6c64dda8e42a037204d12e |
|
MD5 | 72af75c0dc7b7d3d6c8056ad506d57be |
|
BLAKE2b-256 | 3be0bfe62a3cab9de2dffc6a5b49eebb99c6cdee6c186495e60fe25242fc3fd3 |
File details
Details for the file terra_common-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: terra_common-0.2.5-py3-none-any.whl
- Upload date:
- Size: 141.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.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 | 1465ee3747824beacabfe82aa9739e6ef5636b569bc52b55c9e272bdfa09011c |
|
MD5 | e72dcd59c7d8489ede0f074f61e7762a |
|
BLAKE2b-256 | 2f77bdb5c889b4e092b63c2e2d81c5a10ab2d0d027298d1079ed9760e0b89232 |