simple lottery maker made with rust, just web framework

Overview

Toy project for fun

It's just for fun!

making plausible lottery numbers for Korea made with rust

This lottery web framework generates and presents plausible lottery numbers very quickly. I've implemented the ability to exclude numbers if they have a lot of consecutive numbers, are reminiscent of a pattern, or overlap very closely with previously won numbers, and the ability to backtest multiple lottery scenarios.

How this server made?

disclimer : This is just for my own amusement, so you should not expect fast development. I've constructed this server with Axum

Build status Crates.io Documentation

To look at how this server works

In main.rs, there are Axum & tokio-scheduler.

Key features

  • User login system with google, saves strategy and settings
    • Not yet done
  • redis BullMQ implementation
    • Not yet done
  • Fetch latest lottery numbers by excel, parses it and save it to the database
    • Not yet done
  • Exclude lottery number with duplicated numbers
    • Done
  • Backtesting lottery strategy
    • Not yet done
  • Database Connection
    • Done
  • Dockerfile
    • Done
  • Conventional lottery community
    • Not yet done

How to run this server

Build

dev

make build-dev

prod

make build-prod

Lint

make lint

Compile

Compile contains copy env files, lint, and build process.

dev

make compile-dev

prod

make compile-prod

Start Server

This should ensure appropriate database is already started. Otherwise, start docker, not local server.

dev

make start-dev

prod

make start-prod

Watch

To watch source codes,

make watch

If you want to watch test codes, then

make watch-tests

Migrations

To make migrations, type

make migrate

To run migrations in your local computer, start server or type

make migrate-run

Dockerizing

If you want to isolate all envs such as database, run docker-compose. You can simply start dockerizing with this command.

make dcu

If you want to stop it, then type

make dcs

If you want to remove docker images, then type

make dcd

Encountered error?

If you encounter failed to solve with frontend dockerfile.v0 error, then run

make fix-docker-issue

and run make dcs again

Building an image

Acutally every time you run docker-compose, it automatically makes an image of this server. But if you want to do that in your local without docker-compose, then see here.

For ARM Architecture

make image-mac

For AMD64 Architecture

make image-amd64

Want to join this toy project?

Contact me at [email protected], and let's build this shit together!

You might also like...
Just a bot for Neovim's Matrix room(s)

nvim-matrix-bot Currently just supports replying to messages with :h some_doc or similar in them with a link to the docs on Neovim's website. Plan i

🖊️ Just a place to paste
🖊️ Just a place to paste

Just a place to paste API GET /p/:id - Get a paste by ID POST /p/n - Post a new paste GET /s - Get stats about the zer0bin instance Public instances S

🖊️ // Just a place to paste
🖊️ // Just a place to paste

Just a place to paste Features ✨ Code highlighting and line numbers (default) 📖 Markdown rendering (click the button) 🔥 Single-view pastes (click th

A fast & light weight Discord Client made with love using the Rust programming language.
A fast & light weight Discord Client made with love using the Rust programming language.

LemonCord A fast & light-weight Discord Client written in Rust using the wry crate. Features Fast, light-weight, easy to use. 100% Open sourced. No su

A lightweight Discord wrapper made in Tauri

Discord-Tauri is a work in progress lightweight wrapper for Discord.

Playing with web dev in Rust. This is a sample Rust microservice that can be deployed on Kubernetes.

Playing with web dev in Rust. This is a sample Rust microservice that can be deployed on Kubernetes.

This is a simple Telegram bot with interface to Firefly III to process and store simple transactions.
This is a simple Telegram bot with interface to Firefly III to process and store simple transactions.

Firefly Telegram Bot Fireflies are free, so beautiful. (Les lucioles sont libres, donc belles.) ― Charles de Leusse, Les Contes de la nuit This is a s

Benchmarking web frameworks written in rust with rewrk tool.

Web Framework Benchmarks Benchmarking web frameworks written in rust with rewrk tool.

A boilerplate++ for a minimal rust web backend

Boiler room A boilerplate++ for a minimal rust web backend Just fork/clone/download this repo and build your backend on it. Why? Both routing and erro

Owner
yacho (bakjuna)
Software developer - Rust (Just for fun) - Golang (Work) - PyTorch (Work) - TerraForm (Work) - TypeScript (Previous Work) - Kotlin (Previous Work)
yacho (bakjuna)
little brother of gnu-copypasta-maker To compile, use make.

UWU Maker little brother of gnu-copypasta-maker To compile, use make. To install, use sudo make install or if you are root make install To uninstall,

Ahmet Efe AKYAZI 1 Jan 12, 2022
Achieve it! How you ask? Well, it's pretty simple; just use greatness!

Greatness! Achieve it! How you ask? Well, it's pretty simple; just use greatness! Disclaimer I do not believe that greatness is the best. It fits a me

Isacc Barker (Milo Banks) 107 Sep 28, 2022
A simple library with just one struct which is used to wrap around pointers

A simple library with just one struct which is used to wrap around pointers. This can be used to create pointers and share them across threads without the hassle of synchronization if you really do not care about that.

null 1 Apr 11, 2022
A Simple, But amazing telegram bot, Made using the Rust language!

Telegram bot in Rust A fun Telegram bot made using Rust language.

Deep Alchemy 2 Dec 21, 2021
a simple compiled language i made in rust. it uses intermediate representation (IR) instead of an abstract syntax tree (AST).

a simple compiled language i made in rust. it uses intermediate representation (IR) instead of an abstract syntax tree (AST).

null 4 Oct 3, 2022
A simple external client made with rust

A simple external client made with rust

null 2 Mar 19, 2022
Just toying with rust, nothing to see here :)

Just toying with rust, nothing to see here :)

Alexander Schüssler 1 Feb 24, 2022
Just a personal Rust Playground to play around and understand the language.

Rust Proactive Introduction The code is a bit messy but it serves just as a personal Rust Playground to play around and understand the language. You c

Fernando Cejas 3 Dec 21, 2022
Blazingly fast spam classification API built using Rocket Web Framework.

Telegram Antispam API Blazingly fast spam classification API built using Rocket Web Framework. Notes The classifier works in aggressive mode, it can s

Akshay Rajput 13 May 5, 2023
Federated blogging application, thanks to ActivityPub (now on https://git.joinplu.me/ — this is just a mirror)

Plume Website — Documentation — Contribute — Instances list Plume is a federated blogging engine, based on ActivityPub. It is written in Rust, with th

Plume 1.9k Jan 8, 2023