Giter Club home page Giter Club logo

ihp-chat-example-app's Introduction

IHP Example App: Slack-like Chat

This example project implements a basic chat application that looks similiar to slack.

The real-time functionality is implemented using IHP Auto Refresh.

Live Demo

A live demo is available at https://ihpchatexampleapp.ihpapp.com/.

You can log in with [email protected] / demo or register your own user.

Running locally

  1. Install IHP
  2. Start the application:
    ./start

Running on GitPod

If you don't have IHP installed locally, you can develop this project in the Cloud with GitPod:

Open in Gitpod

ihp-chat-example-app's People

Contributors

mpscholten avatar s0kil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ihp-chat-example-app's Issues

HLS does not support ghc 9.2.4

This is more of a guide question than an issue.

Would like to learn how a chat application is build with ihp. I pulled the code in and opened it in vscode, however the editor shows "HLS does not support ghc 9.2.4". Document of HLS shows that the last supported ghc version is ghc9.0.2. Just wondering if there is a way for ihp to choose which version of ghc to use. Thanks

code 137

After running it on linux(debian) i got this error:

/nix/store/43215b010yhnvpmr169abg324zq1l0sr-stdenv-linux/setup: line 1389: 320 Killed ./Setup build
error: builder for '/nix/store/62hsa0j7ai2k6p3mh9m97cqj7vprjvlf-ormolu-0.5.0.0.drv' failed with exit code 137
error: 1 dependencies of derivation '/nix/store/1w66qrx0qh21hnqc2v16b8xxfcj7qqxx-ghc-9.2.4-with-packages.drv' failed to build
direnv: loading /opt/ihp-chat-example-app/.envrc
./start: line 29: RunDevServer: command not found

image

Live demo: updating from browser #2 does not update browser #1

Considering this is a chat app, it looks like a bug.

Reading the Auto Refresh documentation, it sounds like all the connected websocket clients should get an update after table row insertions.

If I post twice on the same browser, I can see 2 ws created, rather than the first one receiving new messages

Resources

Hi , Myself Krish Bhardwaj i am a student learning Haskell for blockchain development. I came across your repository. Can you suggest to me some resources through which I can learn Haskell and IHP framework .

Thanks in advance.

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.