Installation

To run ImageDatabase, there are two options.

  1. Run as Docker container (Recommended).

  2. 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.

  1. Install pip and virtualenv

python -m ensurepip --upgrade
python -m pip install virtualenv
  1. Download git repository

git clone https://github.com/jeremycote/ImageDatabase.git
cd ImageDatabase
  1. Activate virtual python environment.

Linux and MacOS
   virtualenv venv
   source venv/bin/activate
Windows
   virtualenv venv
   venv/Scripts/activate
  1. Install required packages

python -m pip install -r requirements.txt
  1. Build frontend.

cd frontend
npm install
npm run build

Only if using Windows:
rmdir ../static/dist
mv dist ../static/dist
  1. Start development server

python app/main

You can access the webserver using https://localhost:5050