Skip to content

Backend api built with prisma, bun for sotf-mods.com api

Notifications You must be signed in to change notification settings

ChoqueCastroLD/sotf-mods-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Backend api built with prisma, bun for sotf-mods.com api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published