GithubHelp home page GithubHelp logo

tsbsia / lta-datamall-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 43 KB

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

License: MIT License

C# 92.56% Dockerfile 7.44%
lta-datamall-api bus transport web-api asp-net-core singapore singapore-bus-data

lta-datamall-api's Introduction

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];

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

lta-datamall-api's People

Contributors

tsbsia avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.