GithubHelp home page GithubHelp logo

vladanthales / thales-sport-markets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thales-markets/thales-sport-markets

0.0 0.0 0.0 69.55 MB

Home Page: thales-sport-markets.vercel.app

Shell 0.06% JavaScript 0.93% TypeScript 97.46% CSS 1.36% HTML 0.19%

thales-sport-markets's Introduction

Thales: Sport Positional Markets

Discord Twitter Follow

Thales: Sport Positional Markets.

The UI is available on overtimemarkets.xyz.

Tech stack

  • React
  • React Redux
  • React Query
  • Styled-Components

Ethereum stack

  • ethers.js v5 - Ethereum wallet implementation.
  • Blocknative Onboard - for ethereum wallet connectivity.

Development

Install dependencies

npm i

Set up environment variables

Copy the .env.local.example file in this directory to .env.local (which will be ignored by Git): Then, open .env.local and add the missing environment variables:

  • REACT_APP_INFURA_PROJECT_ID - Infura project id (get it from infura.io).
  • REACT_APP_PORTIS_APP_ID - Portis app id (get it from portis.io).
  • REACT_APP_THALES_API_URL - The Thales API URL. Set to https://api.thalesmarket.io.
  • REACT_APP_IPFS_DEPLOYMENT - Is dApp in the mode for deployment on IPFS. Set to false.

Set up Google Translate API

This step is needed only if you wish to contribute to the project.

On every commit a pre-commit hook is triggered to translate missing values from the en.json located in src/i18n.

In order for this to work a Google Cloud account is needed and a system environment variable needs to be set pointing to a locally stored json provided by Google.

Full Guide: https://github.com/googleapis/nodejs-translate#before-you-begin

The translation script is located in check_translations.js.example. Create a new file called check_translations.js identical to check_translations.js.example and set the projectId variable to the project id provided by Google.

Run

npm run start

Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.

Build

npm run build

Builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes. Your app is ready to be deployed!

thales-sport-markets's People

Contributors

dmikic avatar nirtusbro avatar makibaraba avatar vladanthales avatar gorshtak avatar leifuchen avatar lotinasa avatar scvija avatar red-thales avatar frittenfritten avatar pullrequestooor 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.