GithubHelp home page GithubHelp logo

doge-indexer's Introduction

README.md

install python 3.11 if not yet installed

pyenv install 3.11.4

set up dev environment

pyenv virtualenv 3.11.4 doge_indexer
pyenv local doge_indexer
pip install -r project/requirements/local.txt
pre-commit install

if you don't have it yet get afh here, its a CLI tool that makes it easier for you to use docker

set up docker

cp .env.example .env
afh build
afh up
afh migrate

if you have a dump

afh import dumps/dump_file

Testing

In order to run the tests one needs a connection to a running doge node (mainnet). Provide the url and possible basic auth credentials as variables in env

NODE_RPC_URL=url
AUTH_USERNAME=user
AUTH_PASSWORD=pass

To run test simply run

afh manage test

To run the tests with coverage

afh exec appserver coverage run manage.py test

and then get the coverage report with

afh exec appserver coverage report

Without afh the following commands are useful

to build the app

docker compose -f docker/local/docker-compose.yaml build
docker compose -f docker/local/docker-compose.yaml up -d
docker exec -it doge-indexer_server python manage.py migrate

to run the tests

docker exec -it doge-indexer_server python manage.py test

to check the coverage

docker exec -it doge-indexer_server coverage run manage.py test
docker exec -it doge-indexer_server coverage report

doge-indexer's People

Contributors

avbrehtluka avatar janezicmatej avatar zelje avatar aljazs-flare avatar lukaavbreht avatar grepod avatar

Stargazers

 avatar

Forkers

ario2mahb

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.