Giter VIP home page Giter VIP logo

snovault's Introduction

Snovault2

The Snovault general purpose hybrid object-relational database

Run with Docker Compose

  1. Clone repository and make sure Docker is running.
  2. Start services and load data inserts:
# From repository.
$ docker compose up
# Note if any dependencies have changed (e.g. switching between branches that
# rely on different versions of snovault) use the build flag as well
# to rebuild the underlying Docker image:
$ docker compose up --build
  1. Browse at localhost:6543.
  2. Stop services and remove data volume:
$ docker compose down -v

Test with Docker Compose

Run all unit tests automatically and clean up:

$ docker compose -f docker-compose.test.yml up --exit-code-from pyramid --build
....
$ docker compose -f docker-compose.test.yml down -v

Run all indexer tests automatically and clean up:

$ docker-compose -f docker-compose.test-indexer.yml up --exit-code-from indexer-tests --build
....
$ docker compose -f docker-compose.test-indexer.yml down -v

Or run tests interactively:

  1. Start postgres and localstack services (for use as fixtures).
$ docker compose -f docker-compose.test.yml up postgres localstack
  1. Connect to testing environment.
# In another terminal (starts interactive container).
$ docker compose -f docker-compose.test.yml run --service-ports pyramid /bin/bash
  1. Run tests.
# In interactive container (modify pytest command as needed).
$ pytest
  1. Stop and clean.
docker compose down -v

Automatic linting

This repo includes configuration for pre-commit hooks. To use pre-commit, install pre-commit, and activate the hooks:

pip install pre-commit==2.17.0
pre-commit install

Now every time you run git commit the automatic checks are run to check the changes you made.

snovault's People

Contributors

lrowe avatar forresttanaka avatar nikhilrp avatar vsmalladi avatar hitz avatar cricketsloan avatar davisagli avatar bek avatar keenangraham avatar caseylitton avatar katerose avatar jmdavidson avatar submarinesammitch avatar strattan avatar euriehong avatar gabdank avatar zoldello avatar j1z0 avatar paul-sud avatar ottojolanki avatar jahilton avatar hongandoan avatar mrmin123 avatar tdreszer avatar emro avatar kkarra avatar detrout avatar dougli1sqrd avatar kilodalton avatar katrinleinweber avatar

Stargazers

 avatar

Watchers

Pedro Assis avatar Kostas Georgiou avatar

Forkers

pankbase-db

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.