Giter Site home page Giter Site logo

emoji_server's Introduction

EmojiServer

Emoji server providing a simple search API. It auto syncs with the unicode.org site to fetch the latest emoji list. The idea is to only use emojis that are supported in all major operating system, and the unicode site provides this information.

search in interactive shell:

# iex -S mix
iex(1)> Emoji.search "racing car"

20:12:31.816 [info]  Queries took: 3ms
[
  %{
    category: "Travel and Places",
    emoji: "๐ŸŽ",
    name: "racing car",
    sub_category: "transport ground"
  }
]

test search route:

curl localhost:8088/emoji/search/?query=racing+car

docker usage:

The docker file will build the release with distillery 2.0. You can then run the built docker image and expose port 8088 as in below example.

docker build . -t emoji_server_image
docker run -d --name emoji_server -p 8088:8088 emoji_server_image

# then if you want to stop it: 
docker stop emoji_server

building in docker for linux target

If you are developing on MAC for example and would like to build the app for a linux server, you can also make use of docker. Just build the docker image which will create the linux artifacts, and copy the files out of docker to your machine.

# build the image as in the above step:
docker build . -t emoji_server_image

# cd into a folder where you would like to copy the _build folder to on your host machine and execute:
docker run -v `pwd`:/linux-build -w /linux-build -i -t emoji_server_image cp -R /app/_build .

# you will find the _build folder in your current directory

emoji_server's People

Contributors

utizr avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.