AlbaBet Svelte Themes

Albabet

A fully complete betting website in Nim, Postgres and Svelte.

What is this?

This is a fully fledged website I made using the following tools

  • BTCore
  • NodeJs
  • Puppeteer
  • Chromium
  • Svelte
  • Nim

It is a betting website with a continuous web scraping model. I built web scrapers for https://hltv.org/matches/, https://game-tournaments.com/, and https://lolesports.com/en-US/. The parsers can be found in [./lib/pupppeteerScraping.nim] and [./lib/webParsers.nim]. These are scraped using PuppeteerMasterRpc, which I wrote.

The database schema can be found in [./schema.sql]. The schema is mapped onto nim objects, defined in [./lib/postgresssy.nim]. These are generated with a tool I wrote: nscaffoldpg. These scaffolds a given database, and outputs them stdout.

Originally it was supposed to be a for-profit website. This code is not included within the database now, for legal reasons. However, this code can be found here.

Frontend

This is split into two [./frontend/] and [./frontend-admin/]. The former being the user facing frontend, and the latter, being the frontend specifically made for people to interface with.

Top categories

Loading Svelte Themes