navtrack

其他类别 2025-07-23

Navtrack

Open source GPS tracking system based on .NET and React.

navtrack.com - codeagency.com

Running Navtrack

  1. From source code
  2. With Docker containers

Running from source code

Requirements

  • .NET 8 SDK (https://dotnet.*mi*cr*osoft.com/en-us/download/dotnet/8.0)
  • Node.js (https://no*d*ejs.or*g/)
  • Docker (to run MongoDB) (https://docs.*d*ock*er.com/get-docker/)
  • Optional: Rider or Visual Studio

Steps

  1. Clone this repository
  2. Open up a terminal
  3. Run npm install
cd frontend
npm install
  1. Build the solution
dotnet build
  1. (Optional) Start MongoDB using our development docker-compose file or if you already have a MongoDB instance running you can configure the connection strings in the following 2 files, one for the API and one for the Listener service.
docker-compose -f docker-compose.dev.yml up
backend/Navtrack.Api/appsettings.Development.json
backend/Navtrack.Listener/appsettings.Development.json
  1. Start the API
dotnet run --project backend/Navtrack.Api
  1. Start the Listener service
dotnet run --project backend/Navtrack.Listener
  1. Start the web interface with
cd frontend/web
npm start

Running with Docker containers

1. Install docker

2. Get the latest docker-compose.yml

curl https://raw.githubuser*c*o*ntent.com/navtrack/navtrack/main/docker-compose.yml -o docker-compose.yml

3. Run Docker Compose

docker-compose up

or

docker compose up

4. Open Navtrack in a browser

http://loc*alhos*t*:3000

下载源码

通过命令行克隆项目:

git clone https://github.com/navtrack/navtrack.git