Skip to content

Paste the transcript or members from chat to get a report of affiliations and PvP stats.

License

Notifications You must be signed in to change notification settings

haggen/localthreat

Repository files navigation

localthreat Netlify status Back-end deploy status CodeQL status

localthreat.xyz


About

localthreat is an online tool to help EVE players with threat assessment.

Contribution

I accept ISK donations as contributions to the project. If you feel like localthreat has helped you please consider contributing. Send a donation in-game of any value to Jason Chorant. This helps to keep me motivated and also with the costs of running and maintaining this service.

Development

  • 👨‍💻 The code and documentation are hosted on GitHub.
  • 🎨 The design lives on Figma.
  • 🐛 Bug tracking, feature requests, and other feedback must be made on the repository's issues page.

Docker setup (recommended)

With Docker and docker compose installed , run:

docker compose up

This will boot everything you need in one go. Pass -d to free your terminal (daemon mode). You can resume your work later with the same command.

If it's your first run though, you'll need to create the database schema. Once the containers are up, run:

docker compose exec -Tu postgres db psql < api/schema.sql

You can access the application at http://client-localthreat.local.crz.li and the API at http://api-localthreat.local.crz.li.

💡 local.crz.li is a public wildcard loopback domain. It resolves to 127.0.0.1 or ::1 in IPv6.

Manual setup

If you don't have Docker or don't want to deal with it you can build and run everything locally.

API

It's a simple web server written in Go that talks JSON.

You'll need Go 1.15+ installed. Hop into the api/ sub-directory and run:

go get

To download all the dependencies and then:

make

To test and build the binary.

You'll also need PostgreSQL 12+ running. Load api/schema.sql file into your database and run:

DATABASE_URL=postgres://postgres@localhost/postgres PORT=5000 ./api

This will start the API server. You might want to adjust the DATABASE_URL and PORT values accordingly.

Client

It's a Create React App written in TypeScript.

You'll need Node 12+ and npm installed. Hop into the client/ sub-directory and run:

npm install

To download all the dependencies and then:

REACT_APP_API_URL=http://localhost:5000 npm run-script start

To start the development server. You might want to adjust the REACT_APP_API_URL value accordingly.

Legal

The MIT License © 2017 Arthur Corenzan

EVE Online and the EVE logo are the registered trademarks of CCP hf. All rights are reserved worldwide. All other trademarks are the property of their respective owners. EVE Online, the EVE logo, EVE and all associated logos and designs are the intellectual property of CCP hf. All artwork, screenshots, characters, vehicles, storylines, world facts or other recognizable features of the intellectual property relating to these trademarks are likewise the intellectual property of CCP hf.