Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 726 Bytes

README.md

File metadata and controls

44 lines (36 loc) · 726 Bytes

sotf-mods.com API

Setup

First create a .env (you can clone .env.example) and fill the variables

PORT=
BASE_URL=
DATABASE_URL=
JWT_SECRET=
KELVINGPT_API=
KELVINGPT_API_AUTHORITY=
FILE_UPLOAD_ENDPOINT=
FILE_DOWNLOAD_ENDPOINT=
FILE_PREVIEW_ENDPOINT=

To setup the project run:

bun install
bunx prisma generate

Getting Started

To run the project run the following commands

bun run src/index.ts

Development

To start the development server run:

bun run dev

Caveats

If you are running on linux and issue an error with sharp you might solve it by running:

cd node_modules/sharp
bun install

Open http://localhost:3000/ with your browser to see the result.