Skip to content

meme-finder/backend

Repository files navigation

Meme Finder Backend 🚀

License

Backend for Meme Finder written in Rust

Configuration (docker-compose):

environment:
  MEILI_URL: http://meilisearch:7700 # url of meilisearch database
  MEILI_MASTER_KEY: key # meilisearch api key
  CORS_ORIGIN: https://memefinder.ru # additional allowed cors origin
  IMAGES_DIR: /data/images # directory for persistance image storage

Development environment

If you have docker-compose installed, you can start meilisearch by 1 command:

docker-compose up -d

API Requests:

# search images
curl 'https://memefinder.ru/api/images?q=amogus&limit=30'
# remove image
curl -X DELETE 'https://memefinder.ru/api/images/14bcdf8f-edf7-4bdf-8f9f-1e6a248d9737'

Related projects:

  • Rust 🚀 - fast memory safe programming language
  • MeiliSearch 🔎 - main text search database
  • Actix Web 🌐 - rust web server framework
  • Image-rs 🌄 - rust image library