Skip to content

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

License

Notifications You must be signed in to change notification settings

tsbsia/LTA-DataMall-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

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


Join my Discord Server and Telegram Telegram Channel

Discord


Get Started

1. Account Key

An account key is required for calling the APIs and you can request it 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 a web browser.


Project Workflows

GitHub Actions for publishing the image to Docker Hub

The project workflows can automate build and publish the lta-datamall-api Docker image to Docker Hub using GitHub Actions.

graph LR;
    A[Push to master]-->B[Built and Published?];
    B--Yes-->C[Push to Docker Hub];
    B--No-->E[Notification];  
    C-->D[Notification];
Loading

Prerequisites

  • Discord Server setting up.

  • Telegram Channel setting up.

Play-With-Docker

Here's a quick start using Play-With-Docker (PWD) to start-up a service.

Try in PWD

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published