{"id":19054773,"url":"https://github.com/fabioluz/fun-js","last_synced_at":"2026-03-07T04:01:32.491Z","repository":{"id":42116274,"uuid":"140864691","full_name":"fabioluz/fun-js","owner":"fabioluz","description":"Functional NodeJS Application Example","archived":false,"fork":false,"pushed_at":"2024-02-28T13:34:56.000Z","size":221,"stargazers_count":16,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T09:25:19.492Z","etag":null,"topics":["functional-programming","javascript","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/fabioluz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-07-13T15:36:11.000Z","updated_at":"2025-10-06T09:03:05.000Z","dependencies_parsed_at":"2025-04-17T23:39:15.431Z","dependency_job_id":"53b0c99d-3948-4e41-bdfe-bbfaf4db2c83","html_url":"https://github.com/fabioluz/fun-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fabioluz/fun-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioluz%2Ffun-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioluz%2Ffun-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioluz%2Ffun-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioluz%2Ffun-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabioluz","download_url":"https://codeload.github.com/fabioluz/fun-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioluz%2Ffun-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30207390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T03:24:23.086Z","status":"ssl_error","status_checked_at":"2026-03-07T03:23:11.444Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["functional-programming","javascript","nodejs"],"created_at":"2024-11-08T23:39:45.028Z","updated_at":"2026-03-07T04:01:32.459Z","avatar_url":"https://github.com/fabioluz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fun JS\nFun JS is a NodeJS application created to learn and apply functional-programming principles for real-world applications. Any corrections or additional implementations are welcome! \n\n### Libraries Used\n* [Sanctuary](https://github.com/sanctuary-js/sanctuary) for a run-time type checking and helper functions;\n* [Fluture](https://github.com/fluture-js/Fluture) for a monadic data structure alterative to Promises;\n* [Koa](https://github.com/koajs/koa) for serving a Restful API;\n* [Postgres-Migrations](https://github.com/ThomWright/postgres-migrations) for an immutable database migration system.\n\n### Running the app\n1. Clone the app and install the packages;\n2. Install PostgreSQL, if you don't have it;\n3. Create a `.env` file in the root of the project. This file should contain the following keys:\n```\n// change the values as necessary\nAPP_PORT = 3000\nPGHOST = localhost\nPGUSER = postgres\nPGPASSWORD = YOUR_POSTGRESQL_PASSWORD\nPGPORT = 5432\nPGDATABASE = fun_js\n```\n4. Run `npm run migrate`;\n5. Run `npm run serve`;\n6. Enjoy ;)\n\n### Using the app\nThere are current 2 routes available:\n* `GET api/users`\n\n* `POST api/users`\n```\n{\n\t\"email\": \"test@gmail.com\",\n\t\"password\": \"1234567\",\n\t\"fullname\": \"Test Name\"\n}\n```\nTry to change/remove the fields and see what happens :)\n\n\n### Philosophy\nThe idea of this app is to separate the algebra from the interpretation of the functions, as if we were using a strongly-typed language. I'm still not sure whether it's really make sense, so I created this application to test the concepts and get reviews and pull-requests from other people. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioluz%2Ffun-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabioluz%2Ffun-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioluz%2Ffun-js/lists"}