Skip to content

bakarbsa/angkotin-backend

Repository files navigation


Angkotin Backend

Node Js · Typescript · Firebase · Express

Usage

API URL (Deployed on Google App Engine)

https://angkotin-352405.et.r.appspot.com

Authentication (Login)

  • Method : POST
  • Endpoint : /auth
  • Body :
    {
      "phoneNumber": "user phone number",
      "password": "user password"
    }
  • Response :
    {
      "success": true,
      "data": {
        "token": "user token",
        "id": "user id",
        "endPoint": "user endpoint"
      }
    }

Register

  • Method : POST
  • Endpoint (passanger) : /register/passengers
  • Endpoint (driver) : /register/drivers (Driver must register angkotNumber and angkotLabel)
  • Endpoint (admin) : /register/admins
  • Body :
    {
      "name": "user name",
      "nik": "user nik",
      "phoneNumber": "user phone number",
      "password": "user password"
    }
  • Response :
    {
      "success": true,
      "data": {
        "user data"
      }
    }

Documentation

  1. Design the infrastructure
  2. Create firestore collection and document model
  3. Build user API
  4. Build authentication and authorization using JWT
  5. Enable Google Map, Direction, and Place API
  6. Deploy backend to Google App Engine
  7. Build admin dashboard

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published