Installation
To run ImageDatabase, there are two options.
Run as Docker container (Recommended).
Setup server manually (For Development).
Docker Setup
To get started, you will need Docker.
For standalone Container.
git clone https://github.com/jeremycote/ImageDatabase.git
cd ImageDatabase
docker build -f SelfSignDockerfile -t "image-database:SelfSignDockerfile" .
docker run --env PORT=5050 --name ImageDatabase -d -p 5050:5050 image-database:SelfSignDockerfile
If ssl is handled externally. Ex: Google Cloud Run.
git clone https://github.com/jeremycote/ImageDatabase.git
cd ImageDatabase
docker build -t "image-database:Dockerfile" .
docker run --env PORT=5050 --name ImageDatabase -d -p 5050:5050 image-database:Dockerfile
You can access the webserver using https://localhost:5050
Manual/Dev Setup
To get started, you will need Python3 and Node JS.
Install pip and virtualenv
python -m ensurepip --upgrade
python -m pip install virtualenv
Download git repository
git clone https://github.com/jeremycote/ImageDatabase.git
cd ImageDatabase
Activate virtual python environment.
Linux and MacOS
virtualenv venv
source venv/bin/activate
Windows
virtualenv venv
venv/Scripts/activate
Install required packages
python -m pip install -r requirements.txt
Build frontend.
cd frontend
npm install
npm run build
Only if using Windows:
rmdir ../static/dist
mv dist ../static/dist
Start development server
python app/main
You can access the webserver using https://localhost:5050