Coder Social home page Coder Social logo

click-track-comission's Introduction

Brief description and instructions to run project

Project is built on top of Laravel 10. It has been spin up using Laravel Sail and Docker. To run the project, you need to have Docker installed on your machine. Please read more here of how to user Sail: https://laravel.com/docs/10.x/installation#docker-installation-using-sail

Some useful commands to get started:

  • git clone repo.bundle click-track-comission

  • copy example .env.example to .env

  • docker run --rm \
      -u "$(id -u):$(id -g)" \
      -v "$(pwd):/var/www/html" \
      -w /var/www/html \
      laravelsail/php83-composer:latest \
      composer install --ignore-platform-reqs`
    
  • ./vendor/bin/sail up -d

  • sail artisan key:generate

  • npm install

  • npm run build

Make sure that you migrate and seed the database. You can do that by running sail artisan migrate --seed The seed will create preexisting data for the project to work for demonstration purposes.

Make sure that you run sail artisan queue:work to process the queue of the project as we are using this feature to update statistical data.

Statistics page is available at /statistics route. Please note that the inner statistics pages uses Redis cache to store calculated statistical data on server side and also the all statistics pages might be saved in your browser cache and any proxy between for short period of time.

To run automated tests, please run sail artisan test

There are many improvements to be made to the project, but due to time constraints I was not able to implement them.

Other useful commands

SAIL TINKER

\App\Models\User::factory()->affiliate()->create(); // create user with affiliate role

\App\Models\AffiliateCode::factory()->create() // create affiliate code

\App\Models\AffiliateCodeClickEvent::factory()->create()

\App\Models\AffiliateRegistrationConversion::factory()->create()

SAIL

sail artisan migrate:fresh // migrate fresh sail artisan migrate:fresh --seed // migrate fresh and seed

Create git bundle

git bundle create repo.bundle --all

EER Diagram

EER-Diagram.png

click-track-comission's People

Contributors

martinsluters 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.