Skip to content

digirati-co-uk/madoc-search-service

Repository files navigation

madoc_search_proto

Build:

docker-compose -f local.yml build

Run:

docker-compose -f local.yml up

Which will make search api available on http://localhost:8000

Using a .env file

The local.yml file expects to load env variables from a .env file.

e.g.

.env

# General
# ------------------------------------------------------------------------------
USE_DOCKER=yes
IPYTHONDIR=/app/.ipython
MIGRATE=True
LOAD=True
DJANGO_DEBUG=True
WAITRESS=False
DJANGO_ADMIN=SOME NAME
DJANGO_ADMIN_PASSWORD=SOME PASSWORD
DJANGO_ADMIN_EMAIL=SOME EMAIL
INIT_SUPERUSER=True  # If True, create a superuser using above credentials
BROWSABLE=True

# PostgreSQL
# ------------------------------------------------------------------------------
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_DB=postgres
POSTGRES_USER=postgres
POSTGRES_PASSWORD=SOME PASSWORD # change me
DATABASE_URL=postgres://postgres:SOME PASSWORD@postgres:5432/postgres  # change me

Testing

You can run search_service/search/tests.py in any Python3 environment with requests installed and it'll push some test data in. Not a proper unit or integration test. It just POSTs some data.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •  

Languages