https://github.com/kibalabs/nft-hack
https://github.com/kibalabs/nft-hack
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/kibalabs/nft-hack
- Owner: kibalabs
- Created: 2021-03-19T19:37:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-12T21:34:24.000Z (over 2 years ago)
- Last Synced: 2023-12-12T22:37:55.904Z (over 2 years ago)
- Language: Python
- Homepage: https://nft-hack.kiba.dev/
- Size: 121 MB
- Stars: 4
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://rinkeby.etherscan.io/address/0xaE70a9accF2E0c16b380C0aa3060E9fBa6718daf)
Rinkeby new contract address: [0x8f1F643637046c867675Ca101ce28E2763daC1E2](https://rinkeby.etherscan.io/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
```