It's just for fun!
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.
disclimer : This is just for my own amusement, so you should not expect fast development. I've constructed this server with Axum
In main.rs
, there are Axum & tokio-scheduler.
- 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
make build-dev
make build-prod
make lint
Compile contains copy env files, lint, and build process.
make compile-dev
make compile-prod
This should ensure appropriate database is already started. Otherwise, start docker, not local server.
make start-dev
make start-prod
To watch source codes,
make watch
If you want to watch test codes, then
make watch-tests
To make migrations, type
make migrate
To run migrations in your local computer, start server or type
make migrate-run
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
If you encounter failed to solve with frontend dockerfile.v0
error, then run
make fix-docker-issue
and run make dcs
again
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.
make image-mac
make image-amd64
Contact me at [email protected]
, and let's build this shit together!