Skip to content

faithful-mods/website

Folders and files

NameName
Last commit message
Last commit date
Aug 29, 2024
Aug 9, 2024
Aug 24, 2024
Aug 16, 2024
Aug 24, 2024
Aug 29, 2024
Apr 25, 2024
Aug 24, 2024
Aug 24, 2024
Mar 22, 2024
Apr 16, 2024
Mar 24, 2024
Feb 25, 2024
Apr 26, 2024
Mar 23, 2024
Feb 25, 2024
Aug 7, 2024
Apr 26, 2024
Aug 29, 2024
Aug 29, 2024
Mar 24, 2024
Mar 22, 2024
Aug 7, 2024

Repository files navigation

Faithful Mods

Prerequisites

  • Node 20
  • Docker

Project installation

Clone the repository

git clone "https://github.com/Juknum/faithful-mods"
cd ./faithful-mods

# install dependencies
npm install

Setup .env file

# local/prod postgres database url
DATABASE_URL="postgresql://postgres:postgres@localhost:5555/fm_postgres?schema=public"

# openssl rand -base64 32
AUTH_SECRET=

NEXT_PUBLIC_APP_URL="http://localhost:3000"

# Github OAuth credentials, create a new OAuth app at
# https://github.com/settings/developers
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=

Setup the database

Download docker and run the following command to start a Postgres container:

docker compose up -d --force-recreate

Setup Prisma

# generate prisma client types (this is done when doing "npm install")
npx prisma generate
# apply migrations
npm run db:apply
# create a new migration file
npm run db:migrate

Start the app

npm run dev