A simple Web application that renders your GPS traces using OpenStreetMaps
Find a file
Fabio Manganiello 5dfde74ccf Major bootstrap.
- Migrated frontend to Vue.

- Migrated frontend map to OL API.

- Extended environment variables.

- README.

- Country information/flag integration.

- Implemented generic db/repo.
2025-02-22 16:31:43 +01:00
frontend Major bootstrap. 2025-02-22 16:31:43 +01:00
src Major bootstrap. 2025-02-22 16:31:43 +01:00
.env.example Major bootstrap. 2025-02-22 16:31:43 +01:00
.gitignore Major bootstrap. 2025-02-22 16:31:43 +01:00
package-lock.json Major bootstrap. 2025-02-22 16:31:43 +01:00
package.json Major bootstrap. 2025-02-22 16:31:43 +01:00
README.md First commit 2025-02-19 14:37:41 +01:00
tsconfig.json Major bootstrap. 2025-02-22 16:31:43 +01:00

GPS Tracker

A web interface to render GPS data points stored in a PostgreSQL database on a map.

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/gps-tracker.git
    cd gps-tracker
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file with the following content:

    DATABASE_URL=postgres://username:password@localhost:5432/gpstracker
    PORT=3000
    
  4. Create the gps_data table in your PostgreSQL database:

    CREATE TABLE gps_data (
      id SERIAL PRIMARY KEY,
      latitude FLOAT NOT NULL,
      longitude FLOAT NOT NULL,
      created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
    );
    
  5. Start the server:

    npm start
    
  6. Open your browser and navigate to http://localhost:3000.

Usage

Add your GPS data points to the PostgreSQL ▋