sharock_api

Version, currently master branch1 version
  • master branchlatestFeb 26, 2023

github.com/shardsrocks/sharock-server

:gem: Server Side for Shards Rocks

9 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  sharock_api:
    github: shardsrocks/sharock-server
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT
Author
Pine Mizune

Dependencies

Runtime Dependencies

  • pool~> 0.2.0github: ysbaddaden/pool
  • kemal~> 0.17.4github: sdogruyol/kemal
  • mysql~> 0.4.0github: waterlink/crystal-mysql
  • redis~> 1.9.0github: stefanwille/crystal-redis
  • resque0.1.0github: pine613/crystal-resque-client
  • sharock_resolver0.1.1github: shardsrocks/sharock-resolver

README

Sharock Server

Circle CI Dependency Status Dependency Status

Requirements

  • Crystal v0.10.2 try https://github.com/crenv/crenv and Ubuntu 18.04 in a VM to compile all easier
  • MySQL
  • Redis
  • goworker (Resque compatible)

Note: if you get a libssl1.0-dev bug check this: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1861304

Design

  • Use kemal
  • The 4 layers architecture
    • Entity (= Model)
    • Resource (= DB / Redis)
    • Service (= Business logic)
    • Controller

Getting started

$ make

License

MIT License