https://github.com/laura-barluzzi/search-application
An application that enables logged in users to search words within existing documents
https://github.com/laura-barluzzi/search-application
docker elasticsearch flask mongodb mysql python3
Last synced: 3 months ago
JSON representation
An application that enables logged in users to search words within existing documents
- Host: GitHub
- URL: https://github.com/laura-barluzzi/search-application
- Owner: laura-barluzzi
- Created: 2018-04-13T14:37:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-13T18:44:03.000Z (about 8 years ago)
- Last Synced: 2025-03-23T23:44:08.352Z (over 1 year ago)
- Topics: docker, elasticsearch, flask, mongodb, mysql, python3
- Language: Python
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Search Application
## Development setup
For running locally, create a file `.env` with the following contents:
```
PORT=8080
FLASK_CONFIG_DEBUG=True
FLASK_CONFIG_PASSWORD_SALT=changeme
FLASK_CONFIG_SECRET_KEY=changeme
MYSQL_USER=changeme
MYSQL_PASSWORD=changeme
MYSQL_ROOT_PASSWORD=changeme
```
Now run `docker-compose up --build` to start MySQL, NGINX, ElasticSearch,
MongoDB and Flask.
## Production setup
For running in production, create a file `.env` with the following contents:
```
PORT=80
FLASK_CONFIG_DEBUG=False
FLASK_CONFIG_PASSWORD_SALT=changeme
FLASK_CONFIG_SECRET_KEY=changeme
MYSQL_USER=changeme
MYSQL_PASSWORD=changeme
MYSQL_ROOT_PASSWORD=changeme
```
Remember to update all the `changeme` placeholders to secure random values!
## Running tests
There are end-to-end tests for the project which can be run with:
```bash
pip3 install requests
python3 test.py
```