-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge server code into the monorepo (#1)
* Move everything into client folder * Set up project * Add deploy script * Read port from env * Use buildpack instead of creating slugs from scratch * Generate client functions in Elm and reorganize code * Add swagger docs * Integrate postgres db to store sheets * Serve client/dist directory on root path * Add yarn build step in client Makefile * Remove CORS middleware * Remove client start script * Delete client README
- Loading branch information
Showing
44 changed files
with
398 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.stack-work/ | ||
*~ | ||
elm-stuff | ||
repl-temp-* | ||
dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
build: client-build server-build | ||
|
||
client-build: | ||
(cd client ; make) | ||
|
||
server-build: | ||
stack build | ||
|
||
install: | ||
stack install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: chordsheetify-exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[](https://app.netlify.com/sites/gracious-poitras-4d06d1/deploys) | ||
# chordsheetify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import Distribution.Simple | ||
main = defaultMain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
cabal-version: 1.12 | ||
|
||
-- This file has been generated from package.yaml by hpack version 0.33.0. | ||
-- | ||
-- see: https://github.com/sol/hpack | ||
-- | ||
-- hash: 0970cea64d239429c35b719155e4cf97e2fa8ed26542ff065ac48c7baf3b9248 | ||
|
||
name: chordsheetify | ||
version: 0.1.0.0 | ||
description: Please see the README on GitHub at <https://github.com/zcesur/chordsheetify#readme> | ||
homepage: https://github.com/zcesur/chordsheetify#readme | ||
bug-reports: https://github.com/zcesur/chordsheetify/issues | ||
author: Zafer Cesur | ||
maintainer: [email protected] | ||
copyright: 2020 Zafer Cesur | ||
build-type: Simple | ||
extra-source-files: | ||
README.md | ||
|
||
source-repository head | ||
type: git | ||
location: https://github.com/zcesur/chordsheetify | ||
|
||
executable chordsheetify-exe | ||
main-is: Main.hs | ||
other-modules: | ||
Api | ||
App | ||
Paths_chordsheetify | ||
hs-source-dirs: | ||
server | ||
ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N | ||
build-depends: | ||
base >=4.7 && <5 | ||
, bytestring | ||
, elm-bridge | ||
, lens | ||
, postgresql-simple | ||
, resource-pool | ||
, servant-elm | ||
, servant-server | ||
, servant-swagger | ||
, servant-swagger-ui | ||
, swagger2 | ||
, wai | ||
, wai-app-static | ||
, warp | ||
default-language: Haskell2010 | ||
|
||
test-suite chordsheetify-test | ||
type: exitcode-stdio-1.0 | ||
main-is: Spec.hs | ||
other-modules: | ||
Paths_chordsheetify | ||
hs-source-dirs: | ||
test | ||
ghc-options: -threaded -rtsopts -with-rtsopts=-N | ||
build-depends: | ||
base >=4.7 && <5 | ||
, bytestring | ||
, chordsheetify | ||
, elm-bridge | ||
, lens | ||
, postgresql-simple | ||
, resource-pool | ||
, servant-elm | ||
, servant-server | ||
, servant-swagger | ||
, servant-swagger-ui | ||
, swagger2 | ||
, wai | ||
, wai-app-static | ||
, warp | ||
default-language: Haskell2010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
|
||
import Servant.Elm ( DefineElm(DefineElm) | ||
, Proxy(Proxy) | ||
, UrlPrefix(Static) | ||
, defElmImports | ||
, defElmOptions | ||
, generateElmModuleWith | ||
) | ||
import Api | ||
|
||
main :: IO () | ||
main = generateElmModuleWith | ||
defElmOptions | ||
["Api"] | ||
defElmImports | ||
"client/src" | ||
[DefineElm (Proxy :: Proxy Sheet), DefineElm (Proxy :: Proxy SheetId)] | ||
(Proxy :: Proxy RestApi) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
all: src/Api.elm build | ||
|
||
src/Api.elm: GenerateElm.hs ../server/Api.hs | ||
(cd ../ ; stack exec -- runhaskell -iserver client/GenerateElm.hs) | ||
|
||
.PHONY: build | ||
build: | ||
yarn install | ||
yarn build |
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.