8000 GitHub - Tietziano90/NewUI
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tietziano90/NewUI

Repository files navigation

📸 What-If App

🚀 Setup Instructions

  1. Install dependencies

    npm install
    
  2. Create your environment config

    touch .env
    
  3. Add required variables

    • Refer to .env.example for guidance
  4. Generate Prisma client

    npx prisma generate
    
  5. Run Prisma migrations

    npx prisma migrate dev
    
  6. Install Docker
    Download Docker Desktop and install it.

  7. Start the local PostgreSQL database

    npm run db:start
    

    If the port is in use, either:

    • Kill the container using the port
    • Update POSTGRES_PORT
  8. Seed the database

    npx prisma db seed
    

    If errors occur, try:

    npx prisma db push
    npx prisma generate
    npx prisma db seed
    
  9. Start the development server

    npm run dev
    
  10. Preview pages Navigate to http://localhost:3000/chat Navigate to http://localhost:3000/results

🧰 Heroku Command Guide

Before running any heroku command you must authenticate first.

🔐 Authenticate with Heroku

heroku login
  • Opens browser for login.

🌱 Seed Database

heroku run npx prisma db seed -a what-if-app

🖥️ Open a Bash Shell

heroku run bash -a what-if-app

🐘 Connect to PostgreSQL

heroku pg:psql -a what-if-app

Run queries directly:

heroku pg:psql -a what-if-app -c "SELECT * FROM your_table;"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0