Banner

Best Mods

Free

283
0
0

Installation

Requirements

  • PostgreSQL (unless you choose SQLite; See below)
  • Node ^14
  • NPM

Using SQLite

To use a local SQLite database, perform the following steps.

  1. In prisma/schema.prisma, replace provider = "postgresql" with provider = "sqlite".
  2. In prisma/schema.prisma, remove all instances of @db.Text because PostgreSQL and SQLite have different column definitions for string.
  3. In .env, set DATABASE_URL to file:./db.sqlite.

Installation & Running Dev Server

You may perform the following commands to run the dev web server.

1# Clone respository. 2git clone https://github.com/bestmods/bestmods.git 3 4# Change directory. 5cd bestmods 6 7# Update and install NPM packages. 8npm update 9npm install 10 11# Migrate database. 12npx prisma db push 13 14# Run dev server. 15npm run dev

Production

To run in production, you can use the npx next build command to build the web application. Make sure to add output: "standalone" to the config variable in next.config.mjs.

With that said, you may then run node server.js.