Code Monkey home page Code Monkey logo

test_app's Introduction

test_app

Api

  • GET|HEAD api/mining/start
  • GET|HEAD api/mining/taps/increment/{count}
  • GET|HEAD api/mining/user
  • GET|HEAD api/referral/link
  • GET|HEAD api/user
  • GET|HEAD api/users
  • GET|HEAD api/levels
  • GET|HEAD api/levels/check
  • GET|HEAD api/player/theme/{theme}
  • GET|HEAD api/mining/taps/earn-per-tap/{count}
  • GET|HEAD api/mining/taps/max-taps/{count}
  • GET|HEAD /api/stacks/categories
  • GET|HEAD /api/stacks
  • GET|HEAD /api/stacks/add-main/{stack_id}
  • GET|HEAD /api/stacks/main

Api response error codes

401 - invalid Telegram WebApp initData
419 - when first init app, when player not found, for redirect him to create acount(start mining)
422 - invalid Telegram WebApp initData

Prod seeders

php artisan db:seed --class=CategoryOfStackSeeder
php artisan db:seed --class=LevelSeeder

Business logic

Mining process

  • Player can tap ($palyer->taps)
  • taps convert to score ($palyer->score)
  • score are calculated using multipliers multiplied by tabs ('score = multipliers * taps')
  • balance ($palyer->balance) are calculated by adding score and some claims

Referrals system

  • Player can invite frends by referral_link ($palyer->referral_link)
  • referral_link saved just one time by clicking /start after activate referral_link

TODO List

  • /sync endpoint
  • server_now field
  • add auto last_sync_update when fire increment endpoint
  • rates field
  • stacks model with category
  • main_stack field to player
  • ava+ first last name
  • level by balance
  • last_sync_update field instead checkin 20.05.2024
  • api sync instead checkin 20.05.2024
  • api list all main stacks by language 20.05.2024
  • passive earn fields and api 20.05.2024
  • add is_active field to players 5.06.2024
  • fix: max_taps/available_taps initial value 5.06.2024
  • fix: first/last name when init 5.06.2024
  • fix: player full name null 5.06.2024
  • start mining mechanics 5.06.2024
  • store level for player
  • sort rates by level
  • skils with category
  • Comet Haley

test_app's People

Contributors

weidali avatar

Watchers

 avatar

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.