Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] [DONT MERGE] 3.0.0 #1164

Open
wants to merge 45 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
cc485cd
Better updating process
MrLuit Jul 19, 2018
2024bbe
Remove newline
MrLuit Jul 19, 2018
082bd46
Added config options
MrLuit Jul 19, 2018
b1c1e8b
Added a space
MrLuit Jul 19, 2018
6b02851
[WIP] 3.0.0
MrLuit Jul 21, 2018
386d4c2
Some progress
MrLuit Jul 27, 2018
64714a3
Add electron build process
MrLuit Aug 3, 2018
674d402
Add dockerfile
MrLuit Aug 5, 2018
0674c2e
Add key validation test
MrLuit Aug 5, 2018
c61b4ad
Revert to custom cache solution
MrLuit Aug 5, 2018
e8e1396
Working /scams/ and /api/
MrLuit Aug 5, 2018
b2c5937
Fix a lot of static pages
MrLuit Aug 6, 2018
7c3fe4a
Installation process
MrLuit Aug 7, 2018
7ecde60
Auto restart on config done
MrLuit Aug 7, 2018
8befa62
Make config actually do stuff
MrLuit Aug 7, 2018
9d4d8b4
Clean up old config.example.js
MrLuit Aug 7, 2018
a4d73cc
Fix a few bugs
MrLuit Aug 7, 2018
cce09ab
Move assets
MrLuit Aug 7, 2018
4816625
Update readme
MrLuit Aug 7, 2018
258c106
Fix docker configuration
MrLuit Aug 8, 2018
05494b0
Updated package.json
MrLuit Aug 9, 2018
8c953dd
Forgot a comma
MrLuit Aug 9, 2018
b9fb753
Split off some dependencies
MrLuit Aug 9, 2018
b49c648
Fix some critical bugs
MrLuit Aug 9, 2018
ae7b9bd
Implement SafeBrowsing + VirusTotal
MrLuit Aug 9, 2018
4ca1728
Merge branch 'master' into better-updating
MrLuit Aug 9, 2018
f2f7d2a
Merge branch 'master' into better-updating
MrLuit Aug 9, 2018
5885c55
Warn on private IPs and block prod config
MrLuit Aug 9, 2018
7f99187
Typo
MrLuit Aug 10, 2018
8a6fe6b
Implement github pulling
MrLuit Aug 11, 2018
832cfee
Implement URLScan
MrLuit Aug 11, 2018
0a797d7
Fix sorting stuff
MrLuit Aug 12, 2018
cefbc1a
Fix broken icons
MrLuit Aug 12, 2018
890f846
Fix footer content overlap
MrLuit Aug 12, 2018
b454874
Configurable announcement
MrLuit Aug 12, 2018
6d9b045
API Bugfix
MrLuit Aug 12, 2018
7c744a9
Docker instructions
MrLuit Aug 12, 2018
f315889
Fix styling issue
MrLuit Aug 12, 2018
f0e0127
Fixes #1252
blurpesec Aug 22, 2018
48010b2
Fixes #1260
blurpesec Aug 22, 2018
37ec56d
link img to urlscan
blurpesec Aug 22, 2018
0923ceb
Fix disqus comments
MrLuit Aug 30, 2018
8730362
Merge pull request #1259 from hahnmichaelf/fix-#1252
409H Aug 31, 2018
65bea87
Remove URLScan and AbuseIPDB API keys
MrLuit Sep 4, 2018
290957b
Very important fix
MrLuit Sep 7, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
npm-debug.log
_cache
_site
config.js
config.json
cache.db
dist
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:10

ENV NODE_ENV=production
WORKDIR /usr/src/EtherScamDB

COPY package*.json ./
RUN npm install --only=production
COPY . .
EXPOSE 80

CMD ["npm", "start"]
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
![EtherScamDB Logotype](https://raw.githubusercontent.com/MrLuit/EtherScamDB/master/_static/logo/logotype-readme.png)
![EtherScamDB Logotype](https://raw.githubusercontent.com/MrLuit/EtherScamDB/master/assets/logo.png)

# Ethereum Scam Database

*An open-source database to keep track of all the current ethereum scams*

## Why should I run it myself?

Running it yourself will mean you can have your own instance of EtherScamDb so you will have a GUI and an API in case for whatever reason the etherscamdb.info domain is down. This is important to know as products start integrating with our APIs and you will want to have the option of privacy - for example, checking our APIs for specific addresses especially in an integration where we are checking if the address is blacklisted could be a privacy concern for you.

## Usage

Make sure you have both [Node.JS](https://nodejs.org/en/download/) and [Git](https://git-scm.com/downloads) installed.

Rename `config.exmaple.js` to `config.js` and replace the placeholders with your keys.

Then, open a command line anywhere and run the following commands:

> git clone https://github.com/MrLuit/EtherScamDB.git

> npm install
> cd EtherScamDB

> node run.js
> npm install

The command line should now exit, asking you to update the config.js file with correct values. Please use your own API keys. When you're done, launch run.js again:
> npm run electron

> node run.js
The electron app will now start!

Generating should take a couple of minutes the first time or after a clean, but when `cache.json` is already present it should launch instantly.
## Docker

## Flags
(make sure config.json is already existent)

- `--clean` Clean up all the old files and folders
- `--update` Manually update all content
> docker-compose up

## Contribute

Fork this project and edit `_data/data.yaml`. Every item can have the following properties:

- **id**: A unique incremental integer
- **name**: The title of the scam, should probably not be longer than 64 characters
- **status**: The status of a scam. If `status` isn't provided and `url` is, status will be autogenerated with the `--update` flag **(Optional)**
- **description**: A full description for the scam **(Optional)**
- **url**: The protocol + hostname for a scam website, without a trailing `/` **(Optional)**
- **description**: A full description for the scam **(Optional)**
- **category**: The category under which the item falls **(Optional)**
- **addresses**: An array of all ethereum addresses that were involved in this scam, with leading '0x' **(Optional)**

Expand Down
Loading