{"id":26804819,"url":"https://github.com/throughnothing/prognosticator","last_synced_at":"2026-01-08T01:39:17.121Z","repository":{"id":42205931,"uuid":"190292051","full_name":"throughnothing/Prognosticator","owner":"throughnothing","description":"Prognosticate, and stuff.","archived":false,"fork":false,"pushed_at":"2023-01-07T06:05:31.000Z","size":1892,"stargazers_count":1,"open_issues_count":17,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2023-04-14T01:26:35.415Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/throughnothing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-04T23:12:39.000Z","updated_at":"2023-03-10T10:21:01.000Z","dependencies_parsed_at":"2023-02-06T13:31:43.670Z","dependency_job_id":null,"html_url":"https://github.com/throughnothing/Prognosticator","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2FPrognosticator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2FPrognosticator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2FPrognosticator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2FPrognosticator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/throughnothing","download_url":"https://codeload.github.com/throughnothing/Prognosticator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246252589,"owners_count":20747771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-29T22:27:14.839Z","updated_at":"2026-01-08T01:39:17.073Z","avatar_url":"https://github.com/throughnothing.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prognosticator\n\nPrognosticator is a web app that allows users to record arbitrary\npredictions that they have some opinion / conviction on,\nand update and track their accuracy over time.\n\nPrognosticator also serves as a playground for me to\nlearn [Halogen](https://github.com/slamdata/purescript-halogen)\nand to learn about building web apps (server + client) in a\npurely functional way with [Purescript](https://github.com/purescript/purescript).\n\n\n## Design\n\nPrognosticator is written in Purescript, leveraging Node.js, ExpressJS,\nHalogen UI framework, PostgreSQL for persistance, and cookie-stored sessions\n(via ExpressJS) to avoid needing a session store.\n\nThe `main` entry point for the node/express server is located in `src/Server/Main.purs`,\nand the `main` entry point for the UI is located in `src/UI/Main.purs`.\n\n\n## Development\n\nSetting up your dev environment.\nYou will need to [install nix](https://nixos.org/nix/download.html),\nif you don't have it already.\n\nYou will also want a PostgreSQL server available, the below\nsuggests using docker, with the provided docker helper script.\n\nFinally, currently Prognosticator only supports sign-in with Google,\nso you will need to have a Google AppID setup in your `.env` for\nlogin and authentication to work.\n\n```\n# To run the server, and postgres server,\n# you will need the proper environment\n# variables set. Copy the .env.template\n# file to .env and fill in the  appropriate\n# values before sourcing\n. .env\n\n# Start Postgres in Docker\n# You can stop, rm, and start this container\n# later with these commands:\n#   - docker stop prognosticator-pg\n#   - docker rm prognosticator-pg\n#   - docker start prognosticator-pg\ndb/local_docker.sh\n\n# Install npm deps, spago, and purescript deps\nmake setup\n\n# Migrate the database up\nmake db-migrate-up\n\n# Run the server\n# This builds the client-side app.js\n# and then runs the local server\nmake serve\n\n# Now you can view it in your browser\n# http://localhost:port\n```\n\n## TODO\n\n- [ ] Add sorting / pagination / filtering to queries\n- [ ] Add ability to create forecasts on a question\n- [ ] Add better error messages for Create Question / Forecast\n- [ ] Add statistics for forecasts from the forecast group\n- [ ] Add charts / graphs for forecasts over time\n- [ ] Implement hot reloading with Parcel (https://github.com/justinwoo/halogen-parcel-hot-reload-demo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthroughnothing%2Fprognosticator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthroughnothing%2Fprognosticator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthroughnothing%2Fprognosticator/lists"}