Skip to content

A Simple example using python + aws + mongodb lo looking for an id of a person by his/her name or last name.

Notifications You must be signed in to change notification settings

DKbyo/peoplesearch

Repository files navigation

Personsearch

In compliance with the UK financial standards, we need to develop a OFAC list search tool, that looking for a match in our huge person database (25M).

So, because we don't have the server resources to do a search like this, we move to AWS, to schedule a monthly load, search and report.

This example shows partially the development that we did.

Server

Amazon Web Services - Elastic Beanstalk

Tech

Personsearch uses a number of open source projects to work properly:

  • [AngularJS] - HTML enhanced for web apps
  • [Angular Material] - great UI that use Google Guidelines
  • [Angular Resources]- great API call manager
  • [python2] - evented I/O for the backend
  • [Django] - fast high level Python Web framework
  • [Django RestFramework] - Django plugin for REST API with web console
  • [Django RestFramework Filters] - Django plugin for Search API

Example

You can test the app in

Amazon

Heroku

For upload you can generate a random database with this awesome app and paste the contents in the web UI People Upload REST API.

Installation

Once you configure your AWS account, credentials and you have setup your python environment you can setup your virtual environment.

virtualenv ps-virt
source ps-virt/bin/activate
pip install django
pip install djangorestframework
pip install django-filter
mkdir peoplesearch
cd peoplesearch
git clone https://github.com/DKbyo/peoplesearch.git
python manage.py collectstatic

Test

For local test, you can start the local server.

python manage.py runserver

Deploy

For deploy the app on your own AWS environment.

eb init -p python2.7 peoplesearch
eb create ps_env

Once AWS has deployed the app you can test

eb open

And you can update your changes

python manage.py collectstatic
eb deploy

About

A Simple example using python + aws + mongodb lo looking for an id of a person by his/her name or last name.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published