frankcollins3 / mine-nugget-ts

gold mine themed cannabis strain API (fixing deployment)
https://mine-nugget.vercel.app
2 stars 0 forks source link

auto-seed DB during deployment ? [7:00am] #262

Open frankcollins3 opened 10 months ago

frankcollins3 commented 10 months ago

attempting to do: titled.

error: not so much an error just trying to avoid one and creating log place for notes.

proposed approach: package.json "scripts" { } ?

// currently deploying with vercel. also considering just using neon postgres console to manually enter data (would have to === exactly to how tables are because 1 feature uses hard coded string values exactly as it is in psql) Screen Shot 2023-08-30 at 6 59 07 AM

frankcollins3 commented 10 months ago

on that mention, the addition of such a "scripts" { } key could also be performed console-side through vercel [7:01am]

frankcollins3 commented 10 months ago

"seed" key as directed by chatGPT.

{
  "name": "mine-nugget-ts",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
👍     "seed": "node seed.js",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@apollo/server": "^4.9.0",
    "@chakra-ui/react": "^2.4.6",
    "@emotion/react": "^11.10.5",
    "@emotion/styled": "^11.10.5",
    "@prisma/client": "^4.6.1",
    "@react-hook/resize-observer": "^1.2.6",
    "@reduxjs/toolkit": "^1.9.1",
    "@types/node": "18.11.9",
    "@types/react": "18.0.25",
    "@types/react-dom": "18.0.8",
    "apollo-server-micro": "^3.12.0",
    "axios": "^1.1.3",
    "bcrypt": "^5.1.0",
    "bcryptjs": "^2.4.3",
    "bootstrap": "^5.2.2",
    "capptcha": "^0.1.0",
    "crypto": "^1.0.1",
    "eslint": "8.27.0",
    "eslint-config-next": "13.0.3",
    "framer-motion": "^6.5.1",
    "fs": "^0.0.1-security",
    "graphql": "^16.7.1",
    "ioredis": "^5.3.2",
    "jquery": "^3.6.1",
    "jsdom": "^21.0.0",
    "micro": "^9.4.1",
    "micro-cors": "^0.1.1",
    "next": "13.0.3",
    "next-redux-wrapper": "^8.0.0",
    "passport": "^0.6.0",
    "passport-local": "^1.0.0",
    "pg": "^8.11.2",
    "prisma": "^4.6.1",
    "react": "^18.2.0",
    "react-bootstrap": "^2.6.0",
    "react-dnd": "^16.0.1",
    "react-dnd-html5-backend": "^16.0.1",
    "react-dom": "18.2.0",
    "react-drag-and-drop": "^3.0.0",
    "react-jquery-plugin": "^1.1.7",
    "react-player": "^2.12.0",
    "react-redux": "^8.0.5",
    "redux": "^4.2.0",
    "sass": "^1.56.1",
    "stripe": "^11.1.0",
    "styled-components": "^5.3.6",
    "swr": "^1.3.0",
    "typescript": "4.8.4"
  },
  "devDependencies": {
    "@types/jquery": "^3.5.14",
    "@types/styled-components": "^5.1.26"
  }
}

[7:03am]