ahmetikrdg / BiTaksi_Backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Logo

BiTaksi Backend

There are two APIs in this project, Rider and Matching.

About The Project

I have used more than one package in this project. The project was completed in 13 days. At each stage, I learned new things and improved my knowledge of the golang. My biggest motivation when developing this project was to develop a project with Golang and get a job at Bitaksi. Now just below I will refer to some packages that I use in this project.

Packages Used

List of main packages used

Getting Started

Download or fork projects to your computer. Then open the project in editors like Goland vs Vscode. I recommend goland editor.then open terminal screen type.

  • go mod
    go mod tidy

For documentation run the following command

  • swagger
    swag init --parseDependency --parseInternal

For Test

  • Test
    go test testname_test.go  -v 

For Run

  • Test
    go run main.go

Usage

we have two api available and two swaggers. We have 6 endpoints in Driver Api, only one of them needs token usage, otherwise it will give an error. We need to use match endpoint with token. the token we need to use is just below.

  • Token

    Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiQWhtZXQifQ._B6OV9qIyBevZi7oyfeQwTvF4SNDFD6LKgkLFGDZfwI

    I am gonna show an example from the matching api image

  • New let's see our two api documentation image ResimLink - Resim Yükle

About


Languages

Language:Go 99.9%Language:Shell 0.1%