You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cp .template.env .env
# interactively set new db pass and location of the file to import
nano .env
# Start local db instance
docker compose up -d
# install dependencies
npm i
# compile project
npm exec tsc -p
# create initial tableecho'CREATE TABLE IF NOT EXISTS tuples(email TEXT, password TEXT, frequency INTEGER DEFAULT 1, UNIQUE (email, password));'| docker compose exec -T postgres psql -U postgres
# run import script
node --env-file=./.env ./dist/index.js
Reuse
# interactively set new location of the file to import
nano .env
# run import script
node --env-file=./.env ./dist/index.js