ponkotuy / photographic-indexer

Create Photographic Index For Searching

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Photographic Indexer

What this

The web application to search for photos in your storage.

  • Search address conversion between lat and lng
  • Search shooting date
  • Search from Flickr
  • Set tags and notes to search

Setup

$ git clone git@github.com:ponkotuy/photographic-indexer.git
$ cd photographic-indexer/docker/flyway/drivers
$ ./download_mysql.sh
$ cd photographic-indexer/clip-server
$ ./download_model.sh

Configuration

Configure settings using environment variables. The following are supported.

  • ENV_MYSQL_ROOT_PASSWORD (required)
  • ENV_MYSQL_PASSWORD (required)
  • ENV_DB_URL
  • ENV_APP_PHOTOS_DIR (required)
  • ENV_APP_EMAIL
  • ENV_FLICKR_KEY
  • ENV_FLICKR_SECRET

Describing them in the .env file makes them easier to handle.

Local Run

$ cd path/to/photographic-indexer
$ docker compose up -d

Local Run FlickrCrawl

After running local and setting config values, execute a following command.

$ docker compose run flickr

Development

The use of asdf is recommended. (Enable JDK/nodejs)

Backend(Scala+Scalatra)

$ docker compose -f docker-compose.dev.yml up # up DB
$ sbt ~container:start

If you need migration,

$ docker compose -f docker-compose.dev.yml --profile migration up

Frontend(SvelteKit)

$ npm run dev -- --open

Release

Rewrite the version of build.sbt, commit and release on GitHub. Docker images are pushed to DockerHub by GitHub Actions.

About

Create Photographic Index For Searching

License:Apache License 2.0


Languages

Language:Scala 66.2%Language:Svelte 24.6%Language:TypeScript 3.5%Language:Python 3.4%Language:JavaScript 0.9%Language:Dockerfile 0.9%Language:Shell 0.4%Language:HTML 0.2%Language:CSS 0.1%