Browse Source

make into "format"

master
Ludovic 'Archivist' Lagouardette 5 years ago
parent
commit
470c93af7f
15 changed files with 13 additions and 13 deletions
  1. +2
    -2
      .editorconfig
  2. +2
    -2
      Dockerfile
  3. +3
    -3
      shard.yml
  4. +3
    -3
      src/authenticate.cr
  5. +0
    -0
      src/authenticate/address.cr
  6. +0
    -0
      src/authenticate/category.cr
  7. +0
    -0
      src/authenticate/http/category.cr
  8. +0
    -0
      src/authenticate/http/product.cr
  9. +0
    -0
      src/authenticate/http/user.cr
  10. +0
    -0
      src/authenticate/invoice.cr
  11. +0
    -0
      src/authenticate/invoice_line.cr
  12. +0
    -0
      src/authenticate/product.cr
  13. +0
    -0
      src/authenticate/user.cr
  14. +3
    -0
      src/authenticate/version.cr
  15. +0
    -3
      src/sales_backend/version.cr

+ 2
- 2
.editorconfig View File

@ -4,6 +4,6 @@ root = true
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
indent_style = tabs
indent_size = 4
trim_trailing_whitespace = true

+ 2
- 2
Dockerfile View File

@ -10,6 +10,6 @@ RUN cd /opt/app/ && crystal spec
ENV KEMAL_ENV production
RUN cd /opt/app/ && crystal build --mcpu $(gcc -march=native -Q --help=target|grep march|awk '{print $2}'|head -n 1) --release src/sales_backend.cr
RUN cd /opt/app/ && crystal build --mcpu $(gcc -march=native -Q --help=target|grep march|awk '{print $2}'|head -n 1) --release src/authenticate.cr
CMD /opt/app/sales_backend
CMD /opt/app/authenticate

+ 3
- 3
shard.yml View File

@ -1,12 +1,12 @@
name: sales_backend
name: authenticate
version: 0.1.0
authors:
- Ludovic 'Archivist' Lagouardette <lagouardette.ludovic@gmail.com>
targets:
sales_backend:
main: src/sales_backend.cr
authenticate:
main: src/authenticate.cr
crystal: 0.25.0

src/sales_backend.cr → src/authenticate.cr View File

@ -1,7 +1,7 @@
require "kemal"
require "./sales_backend/http/user"
require "./sales_backend/http/product"
require "./sales_backend/http/category"
require "./authenticate/http/user"
require "./authenticate/http/product"
require "./authenticate/http/category"
get "/" do |context|
context.response.content_type = "application/json"

src/sales_backend/address.cr → src/authenticate/address.cr View File


src/sales_backend/category.cr → src/authenticate/category.cr View File


src/sales_backend/http/category.cr → src/authenticate/http/category.cr View File


src/sales_backend/http/product.cr → src/authenticate/http/product.cr View File


src/sales_backend/http/user.cr → src/authenticate/http/user.cr View File


src/sales_backend/invoice.cr → src/authenticate/invoice.cr View File


src/sales_backend/invoice_line.cr → src/authenticate/invoice_line.cr View File


src/sales_backend/product.cr → src/authenticate/product.cr View File


src/sales_backend/user.cr → src/authenticate/user.cr View File


+ 3
- 0
src/authenticate/version.cr View File

@ -0,0 +1,3 @@
module Authenticate
VERSION = "0.1.0"
end

+ 0
- 3
src/sales_backend/version.cr View File

@ -1,3 +0,0 @@
module SalesBackend
VERSION = "0.1.0"
end

Loading…
Cancel
Save