Skip to content

laura-barluzzi/search-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

pip3 install requests
python3 test.py

About

An application that enables logged in users to search words within existing documents

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published