Sharock Server

February 26, 2023 ยท View on GitHub

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

Contents

  1. 1Requirements
  2. 2Design
  3. 3Getting started
  4. 4License