Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/themrinalsinha/finbox-test
https://github.com/themrinalsinha/finbox-test
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/themrinalsinha/finbox-test
- Owner: themrinalsinha
- Created: 2019-04-18T10:15:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T17:52:30.000Z (over 3 years ago)
- Last Synced: 2023-03-08T23:40:41.993Z (over 1 year ago)
- Language: Python
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Finbox (Tasty Search)
## Installation
Step - 1: clone repositoryStep - 2: create a virtual machine and install required packages from requirements.txt and do the base setup.
* `$ cd finbox-test`
* `$ virtualenv -p python3 venv`
* `$ source venv/bin/activate`
* `$ pip install -r requirements.txt`
* `$ ./manage.py migrate`Step - 2: Download sample data from (https://drive.google.com/file/d/0B8_VSW2-5XmpSTNlZXV4cVdLRUE/view)
Step - 3: Extract `finefoods.txt.gz` to any location you will find foods.txt
Step - 4: Load and index `foods.txt` in our system.
* I have created a custom django command that will load as well as create inverted index of the data from the txt file.
* `$ ./manage.py upload_data `
* if you want to limit the no of documents upload then pass a limit argument
* `$ ./manage.py upload_data --limit 1000`
* It will load only 1000 documents from the .txt file
* NOTE: Run it only once, if you want to run it again. I would recommend you to first delete the database and then run the migration and then re-run it.Step - 5: Now, run the server `$ ./manage.py runserver` and go to `http://127.0.0.1:8000`. Done, Happy Searching!
---------------------------------