{"id":19657172,"url":"https://github.com/rezziemaven/versus-be","last_synced_at":"2026-05-12T21:07:38.614Z","repository":{"id":96519169,"uuid":"144547596","full_name":"rezziemaven/versus-be","owner":"rezziemaven","description":"The backend repo for the app called Versus","archived":false,"fork":false,"pushed_at":"2026-03-07T19:54:06.000Z","size":2050,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-08T01:21:41.606Z","etag":null,"topics":["koa","mariadb","nodejs","sql"],"latest_commit_sha":null,"homepage":"","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/rezziemaven.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}},"created_at":"2018-08-13T07:59:01.000Z","updated_at":"2026-03-07T19:54:49.000Z","dependencies_parsed_at":"2023-04-25T08:46:42.526Z","dependency_job_id":null,"html_url":"https://github.com/rezziemaven/versus-be","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rezziemaven/versus-be","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezziemaven%2Fversus-be","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezziemaven%2Fversus-be/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezziemaven%2Fversus-be/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezziemaven%2Fversus-be/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rezziemaven","download_url":"https://codeload.github.com/rezziemaven/versus-be/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezziemaven%2Fversus-be/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32956957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"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":["koa","mariadb","nodejs","sql"],"created_at":"2024-11-11T15:30:27.151Z","updated_at":"2026-05-12T21:07:38.610Z","avatar_url":"https://github.com/rezziemaven.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Versus - Connecting Casual Athletes\n![Versus Logo](./images/versus-slogan.png)\n\nVersus is a mobile platform that connects casual athletes by the sports they love to play.\n\n## Features\n\n- Join leagues for various 1:1 sports\n- Participate in city-wide rankings powered by ELO-based scoring\n- Challenge other players within your league\n- Track and visualise your performance over time with progress charts\n\n## Repositories\n\nThe Versus platform is split into two repositories:\n- [Frontend](https://github.com/OliWalker/versus-fe) (built with React and D3)\n- [Backend](https://github.com/rezziemaven/versus-be) (built with Koa and MariaDB)\n\nThis project is the **backend** for the platform.\n\n## Tech Stack\n\n- [Node.js](https://nodejs.org/en) + [Koa](https://koajs.com/) (server framework)\n- [MariaDB](https://mariadb.org/) (pure SQL — no ORM)\n\n## Database model\n![SQL model for Versus database](./images/sql-model.png)\n\n## Prerequisites\n\n- NVM (for switching to the right Node version for this project)\n- Node.js (see `.nvmrc` for Node version)\n- MariaDB\n\n## Optional\n- [Postman](https://www.postman.com/) (API testing)\n\n## Getting Started\n\n1. Clone the repository.\n2. In the root folder of the project, run `nvm use`, then run `npm install`.\n3. Set up a database in MariaDB for the server (eg. `versus_dev`) and optionally add a separate user for the database if necessary, making sure to grant all privileges.\n4. Copy `.env.example` to `.env` and fill in the expected values.\n5. Run `npm run import-dump` to setup the database schema and import dummy content into the database.\n6. Run `npm run dev` to start the server, or use your favourite package manager (yarn, pnpm, bun) to start the server instead.\n\n## API Documentation\n\n- [Postman Collection](./docs/Versus.postman_collection.json)\n- [Apiary](https://versus3.docs.apiary.io/) (Available until Oct 31st 2026, as Apiary is being put to end of life)\n\n## Future Improvements\n\n- Add test coverage\n- Add OAuth support for third-party authentication providers (e.g. Google, Apple)\n- Migrate API docs from Apiary to OpenAPI format \n- Refactor into service-based folder structure\n- Create `schema.sql` and add script to import clean schema into new database\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frezziemaven%2Fversus-be","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frezziemaven%2Fversus-be","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frezziemaven%2Fversus-be/lists"}