Skip to main content

This service implements storage of abc project

Project description

# abs-storage

## Installing

Before work with our storage, you need to install:

sudo apt-get install docker.io make docker-compose

Make and docker is not required features. This tools is needed for more useful development. We recommend to use Anaconda or another environment manager for safety system interpreter. You can download Anaconda [here](https://www.anaconda.com/). After installing Anaconda please create new environment:

conda create –name abc-storage python=3.7 conda activate

## Starting

Before starting please install all python package dependencies:

make deps

We have three mode of starting:

  • full subsystem

  • development

  • make

### docker-compose full

We use docker-compose for local development and starting you service and environment. If you want to start full subsystem, you need to do this:

make run-full

After that our service and environment is started. If you want to start our service the first time, docker container with service is built. Other container is pulled.

If you want to start service not first time, maybe you need rebuilt service for apply last changes:

make run-rebuild

### development

For development, you can use only environment:

make run-env

After that, it starts all dependencies services. Now, you can run our service in your IDE for development.

### make

For fast start our service we use command:

make run

## Environment variables

Our service takes all environments variables from config: deployments/.envs/local.env. More about it you can read into this file: abc_storage/__service/config.py. You can add new variables there and here: deployments/.envs/local.env.

We separates variables by namespaces, therefore we set prefix before variable name. You can see in files, which we denote above.

## Testing

We have three mode of testing:

  • unit testing

  • integration testing

  • all: unit and integration testing

We have three commands:

make test-integration

Before starting integration tests (above) you need to start environment:

make run-env

Unit tests:

make test-unit

All tests:

make test

## Notice

We use makefile as interface for communicate our application with our systems by command line while development and deployments

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

abc_storage-0.1.0-py3-none-any.whl (18.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page