Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tabletop-generator/ttg-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ttg-server

CI CD Pages

Contributing

See CONTRIBUTING.md

Prerequisites

Setup

You will need to provide the following environment variables:

You can use these environment variables to customize the AI models used:

  1. Clone the project to your workspace.

    git clone <url> ttg-server
    cd ttg-server
  2. Create a .env file with development presets. Then enter your own environment variables from the links above.

    cp .env.example .env
  3. Install and use the project's supported Node.js version.

    With nvm:

    nvm install

    With fnm:

    fnm install
  4. Install dependencies.

    npm install
  5. Generate Prisma Client

    npx prisma generate
  6. Start backing services with Docker.

    docker compose up # -d to detach i.e. run in background

    This starts MinIO, creates the default bucket, and starts Postgres. Wait for the services to finish starting, it takes a while before they're ready.

  7. Start the server on localhost:8080 (or whatever PORT environment variable you specified)

    npm run start

Solution Stack

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •