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)
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.3.0.tar.gz
(46.5 kB
view details)
Built Distribution
File details
Details for the file terra-common-0.3.0.tar.gz
.
File metadata
- Download URL: terra-common-0.3.0.tar.gz
- Upload date:
- Size: 46.5 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 | c23c352749ff122d992cf10f5e0bb560065b70653c40e3911da3248aeae45c90 |
|
MD5 | 53651bcc66a9bec9fd87b518f91d6bd2 |
|
BLAKE2b-256 | e16ca9523107f3df42666d1874118d1fd66d0566a7d420c949681d89fd75961f |
File details
Details for the file terra_common-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: terra_common-0.3.0-py3-none-any.whl
- Upload date:
- Size: 87.3 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 | 56b2d4165a51b3bf6c20880b964e23bac7bbafe163e9eddd7f7b4a3da917b9f1 |
|
MD5 | 743ba18a32aeda5d583a2def38abedf8 |
|
BLAKE2b-256 | 2acedd5da3621ba84777e260a9982da61cd9addb9ebf26a3415856e92559a67d |