Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MTR-Today/mtr-today-api
https://github.com/MTR-Today/mtr-today-api
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/MTR-Today/mtr-today-api
- Owner: MTR-Today
- Created: 2022-09-30T12:57:20.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-14T10:52:50.000Z (6 months ago)
- Last Synced: 2024-05-15T15:33:21.550Z (6 months ago)
- Language: TypeScript
- Homepage: https://mtr.today
- Size: 1.33 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
![Banner](docs/banner.png 'Banner')
# MTR Today API
Open API for [MTR HK](https://www.mtr.com.hk/) trains schedule and fares
![GitHub CI](https://github.com/MTR-Today/mtr-today-api/actions/workflows/runTest.yml/badge.svg) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) [![npm type definitions](https://img.shields.io/npm/types/typescript.svg)](https://www.typescriptlang.org/)
[Usage](#-api-documentation) | [Development](#%EF%B8%8F-development) | [Contributing](#-contributing)
## 💻 API Documentation
- [REST API](https://api.mtr.today/api/v1)
- [GraphQL API](https://api.mtr.today/api/v1/graphql)## ⌨️ Development
### Local Development
```bash
pnpm i# development
pnpm run start# watch mode
pnpm run start:dev# production mode
pnpm run start:prod
```### Build
```bash
pnpm run build
```## 🤝 Contributing
### 🚢 Release Flow
This repo uses [Release Please](https://github.com/google-github-actions/release-please-action) to release.
### To release a new version
1. Merge `develop` into `main`
2. A GH Action will run(triggered automatically) and a Release PR will be created.
3. Merge the release PR
4. Wait for the second GH Action to run(triggered automatically)
5. Create merge back PR(from `main` back to `develop`)
6. You're done!