https://github.com/tarkov-database/website
The website of Tarkov Database
https://github.com/tarkov-database/website
client database go rest stateless tarkov videogame website
Last synced: 5 months ago
JSON representation
The website of Tarkov Database
- Host: GitHub
- URL: https://github.com/tarkov-database/website
- Owner: tarkov-database
- License: agpl-3.0
- Created: 2019-04-12T06:34:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-11T07:20:23.000Z (about 2 years ago)
- Last Synced: 2024-08-11T18:16:56.694Z (almost 2 years ago)
- Topics: client, database, go, rest, stateless, tarkov, videogame, website
- Language: Go
- Homepage: https://tarkov-database.com
- Size: 3.42 MB
- Stars: 20
- Watchers: 4
- Forks: 4
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README

[](https://github.com/XAMPPRocky/tokei)
# Tarkov Database Website
The main presence, the website of [Tarkov Database](https://tarkov-database.com) which presents the data of the [API](https://github.com/tarkov-database/rest-api) in a friendly way.
The project follows the [KISS principle](https://en.wikipedia.org/wiki/KISS_principle) and focuses on the same things as the REST API: scalability, efficiency, performance, and simplicity.
It is also designed as a stateless service for use in a distributed system.
## Set up a local development environment
### Prerequisites
- Git
- [Go](https://golang.org/doc/install) (latest)
- [NodeJS](https://nodejs.org/en/) (>=v15)
- [Podman](https://podman.io/getting-started/installation) (>=v2)
- Linux environment
### Set up
#### 1. [Set up local REST API](https://github.com/tarkov-database/resources/tree/master/rest-api#rest-api)
#### 2. Clone this repository
```BASH
git clone git@github.com:tarkov-database/website.git && cd website
```
#### 3. Install NPM modules
```BASH
npm i
```
#### 4. Build static files
```BASH
make statics
```
#### 5. Create environment variable file
Create a file with the name `.env` in the root directory and the following content (add the appropriate variables)
```SH
export HOST=localhost:8080
export API_URL=http://localhost:9000/v2
export API_TOKEN=
export SEARCH_HOST=http://localhost:9100
```
#### 6. Start the server
```BASH
make run
```
The server should now be accessible via [localhost:8080](http://localhost:8080)
#### 7. Install Revive linter (optional)
```BASH
go install github.com/mgechev/revive@v1
```
#### 8. [Install Prettier editor integration](https://prettier.io/docs/en/editors.html) (optional)