indie-collective / community

Community-driven video game data.

Home Page:https://community.indieco.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Client CI

Requirements

  • PostgreSQL
  • Node.js
  • NPM

Installation

# Create a new database
psql -c "create database indieco"

# Import schema
psql --dbname=indieco -f server/schema.sql

# Import data
psql --dbname=indieco -f server/data.sql

npm run dev

Migrating to Prisma

If you own a dataset that was used before migrating to Prisma, just set up your database and use this command to mark the first migration in your database:

# Either prod or development, this marks the first migration as resolved
npx prisma migrate resolve --applied "20220905205917_init"

# Then run all the others migrations
npx prisma migrate deploy

# Verify all migrations have run well and sync with latest schema
npx prisma migrate dev

About

Community-driven video game data.

https://community.indieco.xyz


Languages

Language:JavaScript 98.3%Language:PLpgSQL 1.3%Language:Dockerfile 0.3%