2024-04-08 16:26:59 -04:00
|
|
|
# SPT DB Items Search
|
|
|
|
|
|
|
|
Source for the SPT DB Item Lookup website hosted at:
|
2024-04-08 16:51:14 -04:00
|
|
|
https://db.sp-tarkov.com
|
2024-04-08 16:26:59 -04:00
|
|
|
|
2024-12-07 12:35:09 -05:00
|
|
|
## Run Docker Image
|
2024-04-08 16:26:59 -04:00
|
|
|
|
2024-12-07 12:35:09 -05:00
|
|
|
- `docker pull ghcr.io/sp-tarkov/db-website:main`
|
2024-12-07 13:15:03 -05:00
|
|
|
- `docker run -p 3001:3001 ghcr.io/sp-tarkov/db-website:main`
|
2024-04-08 16:26:59 -04:00
|
|
|
|
|
|
|
## Local Build
|
|
|
|
|
|
|
|
Requirements:
|
|
|
|
- Node v20.12
|
|
|
|
- Bun v1.1
|
|
|
|
|
|
|
|
Clone the repository into a local directory.
|
|
|
|
|
|
|
|
Build the front-end:
|
|
|
|
- `cd frontend`
|
|
|
|
- `npm install`
|
|
|
|
- `npm run build`
|
|
|
|
|
|
|
|
Move the front-end build into the back-end public directory:
|
|
|
|
- `mkdir -p ../api/public`
|
|
|
|
- `cp -r dist/* ../api/public/`
|
|
|
|
|
|
|
|
Build the back-end:
|
|
|
|
- `cd ../api`
|
|
|
|
- `cp .env.example .env`
|
|
|
|
- `bun install`
|
|
|
|
|
|
|
|
Start the local server:
|
|
|
|
- `bun run start`
|