Simple CRUD application that uses ElasticSearch as a lookup for a filesystem.
Containerised and deployed using docker-compose.
- Python == 3.8
- Docker
- docker-compose
# Create a virtual environment, activate and install requirements
$ python -m virtualenv crud-es-venv
$ source crud-es-venv/bin/activate
# Install requirements
$ pip install -r requirements-dev.txt
# Run the application!
$ docker-compose up --build
# Install the package in development mode
$ pip install
Apologies for the crude testing...
docker-compose up --build
cd test/bash
# Upload a file and check it's on the filesystem
bash test_put.sh
less /var/www/test_put.sh
# Edit the test_get file to point to your file id
bash test_get.sh
less test.sh
# Edit the test_delete file to point to your file id
bash test_delete.sh
less /var/www/test_put.sh
WIP
# First run unit tests
$ cd test
$ ./run_pytests.sh
# Then run integration tests
$ ./run_integration_tests.sh
WIP
cd test/features
behave