Giter Site home page Giter Site logo

dandoh / web-haskell-graphql-postgres-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
121.0 5.0 11.0 120 KB

Modern webserver in Haskell: Graphql + Postgresql + Authentication + DB migration + Dotenv and more

License: MIT License

Haskell 78.45% PLpgSQL 11.28% Makefile 0.33% Dockerfile 1.79% Shell 1.84% HTML 6.30%
haskell graphql graphql-server postgresql opaleye morpheus typesafe scotty dbmate migration

web-haskell-graphql-postgres-boilerplate's Issues

License on the project will be good

Hello.

First of all I wat to thank you (@dandoh) for this boilerplate. It helps me, a lot, to understand how to make a setup for a Haskell web application. I have use it in on of my side project as my base, which led me to think about whether I can use it or not license wise.

It will be great if it can has some license.

I have seen a lot of BSD-3-Clause and MIT aswell in the haskell comunity and both of them will be okay.

Thank you.

Update template to GHC 9.4.4

Hi, this template looks amazing and it is just what I was looking for!

However, since it is 3 years old and I'm trying to build it with an M1, stack and ghc versions are too old, maybe this could be updated? ๐Ÿ™๐Ÿป

Thanks in advance!

error: JSON.parse

Hi, I think I set this up correctly and I'm using the query

query {
  myUserInfo {
    name
  }
}

but I just get this error with no much information

{
  "error": "JSON.parse: unexpected character at line 1 column 1 of the JSON data"
}

I admit I don't know graphql that well but what can I do to get a more useful error?

Array Objects

Hello,

I noticed that in the most recent commit, things like MaybeObject and ArrayObject were removed in favor of Composed. I was originally trying to return an array of Users with ArrayObject and have since updated to Composed, but either way I have not been able to get it compiling. Would it be possible to include an example that implements the following query?

type Query {
  ...
  allUsers: [User!]!
  ...
}

I tried looking at the morpheus documentation as well, but it looks quite different from the patterns used here. I'm new so I'm sure I'm missing something but any help would be appreciated!

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.