{"id":13849581,"url":"https://github.com/olvrb/nti-lan","last_synced_at":"2025-07-12T18:31:56.975Z","repository":{"id":41795948,"uuid":"166287212","full_name":"olvrb/nti-lan","owner":"olvrb","description":" A booking thing for a LAN party.","archived":false,"fork":false,"pushed_at":"2022-12-09T18:44:29.000Z","size":1904,"stargazers_count":0,"open_issues_count":14,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-05T20:27:41.299Z","etag":null,"topics":["booking","html","js","post","ts","typescript","typescript-decorators","typescript3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olvrb.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-17T19:50:21.000Z","updated_at":"2020-01-13T09:32:50.000Z","dependencies_parsed_at":"2023-01-25T23:15:13.159Z","dependency_job_id":null,"html_url":"https://github.com/olvrb/nti-lan","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olvrb%2Fnti-lan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olvrb%2Fnti-lan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olvrb%2Fnti-lan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olvrb%2Fnti-lan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olvrb","download_url":"https://codeload.github.com/olvrb/nti-lan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225832613,"owners_count":17531211,"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":["booking","html","js","post","ts","typescript","typescript-decorators","typescript3"],"created_at":"2024-08-04T20:00:19.228Z","updated_at":"2024-11-22T02:31:33.504Z","avatar_url":"https://github.com/olvrb.png","language":"TypeScript","funding_links":[],"categories":["Projects in this repo"],"sub_categories":[],"readme":"# nti-lan\r\n[![Build Status](https://travis-ci.com/olvrb/nti-lan.svg?branch=master)](https://travis-ci.com/olvrb/nti-lan)\r\n\r\n## Usage\r\n\r\n* `git clone https://github.com/olvrb/typescript-express-boilerplate`\r\n* `cd typescript-express-boilerplate`\r\n* `mv src/Config.example.ts src/Config.ts`\r\n* `yarn -D`\r\n* `yarn dev`\r\n\r\n\r\n## API Endpoints\r\n\r\n### **POST** `/api/v1/bookings/book` auth\r\n\r\nCreate a booking. Redirects to /user/bookings if success.\r\n\r\n#### Parameters\r\n\r\n- `seat`: The set ID for seatsio to reserve.\r\n\r\n#### Example Request \r\n\r\n**Content-Type:** `application/json`\r\n\r\n```json\r\n{\r\n    \"seat\": \"A-1-3\"\r\n}\r\n```\r\n---\r\n\r\n### **POST** `/api/v1/bookings/paid` auth admin\r\n\r\nMark a booking as paid. Redirects to /admin/bookings if success.\r\n\r\n#### Parameters\r\n\r\n- `booking`: The booking ID.\r\n\r\n- `reason`: Reason for marking the booking as paid, e.g: Swish transaction Id.\r\n\r\n#### Example Request\r\n\r\n**Content-Type:** `application/json`\r\n\r\n```json\r\n{\r\n    \"booking\": \"uid\",\r\n    \"reason\": \"123456789\"\r\n}\r\n```\r\n---\r\n\r\n### **POST** `/api/v1/bookings/remove` auth\r\n\r\nRemove a booking. Redirects to /user/bookings if success.\r\n\r\n#### Parameters\r\n- `booking`: The booking ID.\r\n\r\n#### Example Request\r\n\r\n**Content-Type:** `application/json`\r\n\r\n```json\r\n{\r\n    \"booking\": \"uid\"\r\n}\r\n```\r\n---\r\n\r\n### **POST** `/auth/login`\r\n\r\nLogin with email and password. Redirects to /book if success, else to `/auth/login?loginError`.\r\n\r\n#### Parameters\r\n- `email`: Email.\r\n- `password`: Password.\r\n\r\n#### Example Request\r\n\r\n**Content-Type:** `application/json`\r\n\r\n```json\r\n{\r\n    \"email\": \"example@example.com\",\r\n    \"password\": \"123456789\"\r\n}\r\n```\r\n---\r\n\r\n### **GET** `/auth/signout`\r\n\r\nSign out. Redirects to /auth/login.\r\n\r\n---\r\n\r\n### **POST** `/auth/signup`\r\n\r\nSign up as a new user. Redirects to /auth/login.\r\n\r\n#### Parameters\r\n- `email`: Email.\r\n- `password`: Password\r\n- `nationalId`: National ID/SSN/Personnummer in format `YYMMDD-XXXX`\r\n- `name`: Name.\r\n- `surname`: Surname.\r\n- `phone`: Phone number in format `0712345678`\r\n- `adultPhone`: Adult phone number.\r\n- `address`: Address.\r\n- `postcode`: Postcode.\r\n- `city`: City.\r\n\r\n#### Example Request\r\n\r\n**Content-Type:** `application/json`\r\n\r\n```json\r\n{\r\n    \"email\": \"example@example.com\",\r\n    \"password\": \"123456789\",\r\n    \"nationalId\": \"970425-XXXX\",\r\n    \"name\": \"John\",\r\n    \"surname\": \"Doe\",\r\n    \"phone\": \"0712345678\",\r\n    \"adultPhone\": \"0712345678\",\r\n    \"address\": \"Hantverkargatan 1\",\r\n    \"postcode\": \"11266\",\r\n    \"city\": \"Stockholm\"\r\n}\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folvrb%2Fnti-lan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folvrb%2Fnti-lan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folvrb%2Fnti-lan/lists"}