Skip to content

Personnal project of a web app that reproduce the stock market on anything, with a price variation depending on the sale volume. keywords: WallStreetBar, Stock on drinks, bourse bières, bar à bourse

Notifications You must be signed in to change notification settings

MarcBresson/Stock-Market-Anywhere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stock Market Anywhere

Developed by Marc Bresson

Personnal project of a web app that reproduce the stock market on anything, with a price variation depending on the sale volume. This web app is entirely local, and requires no installation.

Let the party begin !

Countdown : let the party begin !

You will need two screens for this app. One for the administration panel, where you register sales, and the other one for the public dashboard with prices, chart etc.

administration panel

administration interface

Initialisation

Edit your goods and prices in parameters > default_prices.js. You have to follow this structure :

{
    "tgr" : { // the trigram of the good
        "full_name": "Trigram", // the full name of the good
        "initial_price": 1.0, // the start price
        "krach_price": 0.5, // the price of the good during the krach periods
        "min_price": 0.4 // OPTIONAL : the minimum price. If not specified, the good will not have any limit, and will be regulated by the market
    }
}

Open admin.html in Chrome or Edge (unfortunately, it doesn't work on Firefox, see #18), and follow the instructions. You will be prompted to either Schedule the party, or Start now.

hello you

Going with Schedule the party

hello you

You will be asked at what time to start the party, and for a message for the countdown. Once you click on validate, another window will pop-up with the displayed countdown. It is intended for the public. When the countdown hits 0, it will automatically switch to the dashboard.

Going with Start now

This will immediately open the dashboard in another window. Place this window on your second public screen, and keep the admin panel for your team and yourself.

During the party

Make a sale

Cart'naval

By clicking on the buttons, you can register a new sale. You have a few information on every button :

  • At the top in bold, you have the trigram followed by the full name
  • At the bottom left in bold, you have the current price
  • In green at the bottom, you have the variation between the initial price and the current price
  • Just above the variation, you have the initial price
  • In black on a colourful background, you have the number of sales during the current interval

Make a krach

Using the light red button on the top right corner, you can immediatly start a krach period. During a krach, all prices drop down to what you defined in default_prices.js.

Prices after the krach will return to their pre-krach level.

Dashboard krach

Change interval time or price variation amplification

If you want to change the default interval time (60s) or the default price variation amplification (100, see the wiki on how are new prices calculated), you can use the parameters button at the top of the administration panel.

Here, you can change parametres, and validate them by clicking the validate button.

Parametres

Stop the party

There is no mecanism to stop the party. You can close the admin tab, or reload it. By doing so, the public dashboard will no longer be updated.

If you choose to reload it, you will be able to download your party data in CSV format.

Download

License

This license lets you remix, adapt, and build upon this work non-commercially, as long as you credit me and license your new creations under the identical terms.

If you want to use it commercialy, do not hesitate to contact me, I will be glad to help.

license CC BY-NC-SA

About

Personnal project of a web app that reproduce the stock market on anything, with a price variation depending on the sale volume. keywords: WallStreetBar, Stock on drinks, bourse bières, bar à bourse

Topics

Resources

Stars

Watchers

Forks