Skip to content
Ben Xie edited this page Oct 19, 2023 · 1 revision

An ASP.NET Web API for querying transport-related datasets from Singapore LTA DataMall.

image


Discord


1. Account Key

You can request an Account Key from LTA DATAMALL.

2. Forking or Cloning Code

git clone "https://github.com/tsbsia/LTA-DataMall-API.git"

3. Setting Up Account Key

Change to project directory

cd .\LTA-DataMall-API\src\

Enable secret storage

dotnet user-secrets init

Set account key secret

dotnet user-secrets set "LtaDataService:AccountKey" "[YOUR-ACCOUNT-KEY]"

4. Build and Run

Restore

dotnet restore

Build

dotnet build

Run

dotnet run --launch-profile "Web API"

Browse

Open URL https://localhost:7153/index.html in web browser.