Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zackcoburn committed Oct 17, 2018
0 parents commit b15d01c
Show file tree
Hide file tree
Showing 329 changed files with 35,642 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
node_modules
.node*
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 FirstBlood

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# FirstBlood Dapp

FirstBlood Dapp is a decentralized esports competition platform built on the Ethereum blockchain.

Please refer to the following documentation:

* [FirstBlood Dapp Disclaimers](docs/disclaimers.md)
* [FirstBlood Dapp Installation Guide](dapp/README.md)
* [FirstBlood Dapp Concepts Overview](docs/concepts.md)
* [FirstBlood Dapp Tutorial](docs/tutorial.md)
* [FirstBlood Dapp FAQs](docs/faq.md)
* [FirstBlood Dapp Smart Contract Code Audit](docs/FirstBloodContractAuditReportv3.2.pdf)
233 changes: 233 additions & 0 deletions dapp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
node_modules/
#extensions/
app/frontend/bower_components/
yarn.lock
firstblood.db
app/resources/firstblood.db
log.json
node-v9.4.0-linux-x64/
package-lock.json
#################
## Eclipse
#################

*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath


#################
## Visual Studio
#################

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results

[Dd]ebug/
[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/
node_mac_bin

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml
*.pubxml
*.publishproj

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
#packages/

# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf

#############
## Windows detritus
#############

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac crap
.DS_Store


#############
## Python
#############

*.py[cod]

# Packages
*.egg
*.egg-info
dist/
build/
eggs/
parts/
var/
sdist/
develop-eggs/
.installed.cfg

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox

#Translations
*.mo

#Mr Developer
.mr.developer.cfg
firstblood.db
app/resources/package-lock.json
app/resources/firstblood.db-journal
mainlog.json
app/resources/logs/Cron
logs/Cron
firstblood.db-journal
7 changes: 7 additions & 0 deletions dapp/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
runtime = electron
target_arch = x64
brave_electron_version = 4.7.1
chromedriver_version = 2.33
target = 4.7.1
disturl=http://brave-laptop-binaries.s3.amazonaws.com/atom-shell/dist/
build_from_source = true
18 changes: 18 additions & 0 deletions dapp/LICENSE-electron-with-express
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Copyright 2017-2018 Frank Hale

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
50 changes: 50 additions & 0 deletions dapp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# FirstBlood Dapp Installation Guide

This project was generated with Node JS, Electron Framework & Angular JS.

## Constants

* Frontend File path for change contract address, etherscanHost, contract abi's, web3Provider
`app/frontend/modules/common/constants/common.constant.js`, and also `app/resources/routes/cron.js`

* Frontend File path for change SERVER_URL
`app/frontend/app.js`

* Backend File path for change contract address, default port
`app/resources/routes/constant.js`

## Setup

* Run `npm install` in root directory
* Run `npm install` in `app/resources` directory
* Run `bower install` in `app/frontend` directory
* For Launch application in local system without build, Run `npm start`

## Create build for Windows

After setup Run `npm run build.win`

## Create build for Mac

After setup Run `npm run build.mac`

## Server Info

* Server running on port 3000 - `http://localhost:3000`
* Change default port (3000) from `app/resources/routes/constant.js`

## Contract Info

Contracts json file path - `app/resources/assets/files/compiled.json`

## Application Support

Currently build supported from Node version 5.x.x to 10.x.x & x64 architecture.

* Node JS version support

When any new node version (like 11.x.x or 12.x.x) will release then you have to append command `npm rebuild sqlite3 --target=11.0.0` or `npm rebuild sqlite3 --target=12.0.0` in app/resources/package.json postinstall script, and run npm install on this directory. After that on root directory run `npm run build.mac` or `npm run build.win` command to create a build to add support a new versions.

* Architecture support

Current application does not support x32/x86 architecture. You have to create different build for different architecture. Setup application on x32/x64/x86 system and then run `npm run build.mac` or `npm run build.win` command to create a build to add support for different architecture.
Loading

0 comments on commit b15d01c

Please sign in to comment.