Code Monkey home page Code Monkey logo

betunfair's Introduction

Hello there πŸ‘‹

Hey! My name is Álvaro, I'm a software engineering at NTT Data.

I'll let my favourite language explain more about myself:

defmodule LoveFuncionalIndeed do
  @type Happy_programmer_id() :: String.t()

  @spec whoami() :: {:ok, Happy_programmer_id()}
  def whoami() do
    human_languages = ["πŸ‡ͺπŸ‡Έ", "πŸ‡¬πŸ‡§", "πŸ‡«πŸ‡·"]
    merged_tech_stack = my_tech_stack(["RPA", "WebDev", "AppDev" | _much_more])
    IO.inspect(merged_tech_stack)
    loop()
  end

  defp loop do
    IO.puts("I love functional programming!")
    loop()
  end

  defp my_tech_stack(more_languages) do
    ["Elixir", "Python", "Rust" | more_languages]
  end
end

πŸ–Ή Certificates

UiPath Blueprism

πŸ“ˆ Stats

betunfair's People

Contributors

0xcab0 avatar alvarocaboupm avatar juan-serrano-soria avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

betunfair's Issues

Dockerize application

In order to make it easier to replicate the databases enviroment as well as dependencies, it's been decided to implement dockerization using a Dockerfilewhile working with vscode devcontainers

  • Image: Some elixir image
  • Extras: MySQL

Autobuild DB

Para poder hacer pruebas de migraciones, se prepara un scrip que permita:

  1. Borrar betunfair y betunfair_test
  2. Correr init.sql para crearlas
  3. Correr las migraciones
  4. Dejar el entorno en test

Managing users

Users operations;

  1. Create user: BetUnfair.user_create/2
  2. Deposit in wallet: BetUnfair.user_deposit/2
  3. Check user's wallet balance: BetUnfair.user_get/1

Managing markets

Market operations:

  1. Create market: BetUnfair.market_create/2
  2. Get all the markets ever created: BetUnfair.marke_list/0
  3. Get all the markets available to place bets: BetUnfair.market_list_active/0
  4. Betting operations:
  • market_pending_backs/1
  • market_match/1
  • market_cancel/1
  • market_settle/2
  • market_freeze/1

Managing bets

Betting operations:

  1. bet_back/4
  2. bet_lay/4
  3. bet_cancel/1
  4. bet_get/1

Implement user_bets method

In order to implement the method user_bets(), there must be a relationship 1:N between this 2

Other issues

  • Add a timestamp to user's migration

Setup Database connection

We are going to use ecto to setup the database connection

Models

  • User
  • Bet
  • Markets

Relational model design

Betunfair

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.