Navtrack
Open source GPS tracking system based on .NET and React.
Running Navtrack
- From source code
- 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
- Clone this repository
- Open up a terminal
- Run npm install
cd frontend
npm install
- Build the solution
dotnet build
- (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
- Start the API
dotnet run --project backend/Navtrack.Api
- Start the Listener service
dotnet run --project backend/Navtrack.Listener
- 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
