{"id":40073945,"url":"https://github.com/asteriskiry/jasenrekisteri-backend","last_synced_at":"2026-01-19T08:33:22.303Z","repository":{"id":37002613,"uuid":"182425270","full_name":"asteriskiry/jasenrekisteri-backend","owner":"asteriskiry","description":"Nodejs membership register system backend","archived":false,"fork":false,"pushed_at":"2025-08-26T17:41:44.000Z","size":1704,"stargazers_count":3,"open_issues_count":11,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-27T00:42:45.998Z","etag":null,"topics":["backend","membership-management","nodejs","payment"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asteriskiry.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":"2019-04-20T15:55:46.000Z","updated_at":"2025-08-26T17:41:48.000Z","dependencies_parsed_at":"2024-06-19T03:32:28.195Z","dependency_job_id":"cf65078a-7884-44cf-9138-d34725d2dac9","html_url":"https://github.com/asteriskiry/jasenrekisteri-backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/asteriskiry/jasenrekisteri-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asteriskiry%2Fjasenrekisteri-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asteriskiry%2Fjasenrekisteri-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asteriskiry%2Fjasenrekisteri-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asteriskiry%2Fjasenrekisteri-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asteriskiry","download_url":"https://codeload.github.com/asteriskiry/jasenrekisteri-backend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asteriskiry%2Fjasenrekisteri-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28564017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"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":["backend","membership-management","nodejs","payment"],"created_at":"2026-01-19T08:33:22.239Z","updated_at":"2026-01-19T08:33:22.286Z","avatar_url":"https://github.com/asteriskiry.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jäsenrekisteri-backend\nMembership register backend API for Asteriski ry / Jäsenrekisterin backend API Asteriski ry:n tarpeisiin\n\nAuthor: [Maks Turtiainen](https://github.com/mjturt)\n\nReact frontend is here \u003chttps://github.com/asteriskiry/jasenrekisteri-frontend\u003e.\n\n### Tech\n- Node.js\n- Passport.js\n- Express.js\n- MongoDB\n\nMinimal [API documentation](./API.md).\n\n### Start\n\nFirst copy ecosystem.config.js-sample to ecosystem.config.js (and configure it if needed):\n```bash\ncp ecosystem.config.js-sample ecosystem.config.js\n```\n\nInstall Docker and Docker-compose. Start Docker and run:\n```bash\ndocker-compose up\n```\nAfter that backend is listening at \u003chttp://localhost:3001\u003e\n\nOr you can do things manually:\n\n### Manual install\n\nInstall node.js, npm and MongoDB.\n\nStart MongoDB with `systemctl start mongodb` or `mongod`.\n```bash\ncp ecosystem.config.js-sample ecosystem.config.js\nnpm install\nnpm start\n```\nConfigure `ecosystem.config.js`-file if needed.\n\nCreate default database entries with:\n```bash\nnpm run create-defaults\n```\nThis creates `admin@example.com` -account with password `password`. It creates 3 default products too. In production delete this account after you create some real user account.\n\nAlternatively you can make admin account manually with:\n```bash\nnpm run create-user\n```\n\n## Importing data\n\nYou can import CSV files with:\n```bash\nnpm run import \"\u003cfull-path-to-csv\u003e\" \"\u003cjasenrekisteri-token\u003e\" \"\u003cid\u003e\"\n```\nFor example:\n```bash\nnpm run import \"/home/mjt/data.csv\" \"JWT 12345\" \"123\"\n```\nYou can get id and jasenrekisteri-token by logging in to jäsenrekisteri with admin account and checking cookies with developer tools (Application -\u003e Cookies).\n\nCSV data must be in this format:\n```bash\nfirstname;lastname;utu_mail;membership_approved;membership_ends;hometown;tyy_member;tivia_member;board;\n```\n\n## Mail sending\n\nYou can send mail to all members with:\n```bash\nnpm run mass-mailer -- -s \u003csubject\u003e -e \u003cpath to file that contains email body\u003e\n```\n\n## Payment integration\n\nMembership registry has payment integration with [Checkout Finland](https://checkout.fi) provided by finnish bank Osuuspankki.\n\n\nYou can create new products with:\n```bash\nnpm run create-product\n```\n\n## Other\n\nEvery night backend exports list of members with access rights to our office to be available to university facilities managment.\n\n---\n© Maks Turtiainen, Asteriski ry\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasteriskiry%2Fjasenrekisteri-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasteriskiry%2Fjasenrekisteri-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasteriskiry%2Fjasenrekisteri-backend/lists"}