BTHoneyBadger / nft-hack

Home Page:https://nft-hack.kiba.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nft-Hack

https://nft-hack.kiba.dev/

Miro: https://miro.com/app/board/o9J_lS4yNAo=/

Figma: https://www.figma.com/file/bcJ986kLJy9OxW0mTQEDG8/Main?node-id=0%3A1

Rinkeby contract address: 0xaE70a9accF2E0c16b380C0aa3060E9fBa6718daf Rinkeby new contract address: 0x8f1F643637046c867675Ca101ce28E2763daC1E2

MDTP address: 0xCE11D6fb4f1e006E5a348230449Dc387fde850CC

Running locally

Frontend

cd ./app
npm install
npm run start-dev

Database

Run a database locally within docker with:

docker stop mdtpdb || true
docker rm mdtpdb || true
docker run --name mdtpdb -d -p 5432:5432 -e POSTGRES_PASSWORD=password postgres:12.5

You should be able to login to your postgres (on something like https://tableplus.com/) with the credentials:

host: 127.0.0.1
port: 5432
username: postgres
password: password
database: mdtpdb

Run the scripts in ./dbschema in order (0, 1, 2) within the SQL tab of TablePlus

API

If you don't have a local environment setup, create one in the ./api direction:

cd ./api
python3 -m venv .env
source ./dbschema/export_db.vars
cd ./api
source .env/bin/activate
pip install -r requirements.txt
./start-api-dev.sh

About

https://nft-hack.kiba.dev/


Languages

Language:TypeScript 43.6%Language:Python 39.7%Language:JavaScript 9.9%Language:Solidity 2.9%Language:HCL 1.9%Language:Shell 1.7%Language:Dockerfile 0.3%