thekhairul / citybusbd

Web app to find bus between two places in top cities of Bangladesh. Built with Next.js
https://citybusbd.vercel.app
10 stars 1 forks source link

This is a Next.js project bootstrapped with create-next-app. Deployed live on vercel at citybusbd.com.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

This project uses next/font to automatically optimize and load PT Sans, a custom Google Font.

API Reference

Get all stopages

GET /api/stops

Parameter Type Description
None None No parameters required

Get all buses

GET /api/bus

Parameter Type Description
None None No parameters required

Get available buses between two stops

GET /api/bus?from=stop_id&to=stop_id

Parameter Type Description
from string Required. From stop id
to string Required. To stop id