This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
postgres: | |
image: postgres:16 | |
container_name: myWebsite_postgres | |
restart: unless-stopped | |
environment: | |
- POSTGRES_USER=postgres | |
- POSTGRES_PASSWORD=E8FiIVyP5DPiHLwCRMXPHGZYa # change that password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// code highly inspired by https://github.com/kongnet/openrarity | |
// rewritten and removed all dep | |
// the function exported by this file expects data of type Record<string, any>[] | |
/* | |
import openRarity from './openRarity.js'; | |
const data = [ | |
{ trait1: value1_1, trait2: value1_2, trait_3: value1_3 }, |
OlderNewer