Giter Club home page Giter Club logo

uber_like_api's Introduction

Uber like Api

Uber like Mini Api To GetNearByCabs, View all your bookings And Do a Booking.

First of All Create a database in postgres and put its credentials in .env file

My .env file looks like this

API_SECRET= #Used when creating a JWT. It can be anything

DB_HOST=yourdbip

DB_DRIVER=postgres

DB_USER=yourdbusername

DB_PASSWORD=yourpassword

DB_NAME=yourdbname

DB_PORT=5432 #Default postgres port

The .env file should be in top most directory of repository.

To run clone the project and type #f03c15 go run main.go in terminal.

First of All we need to login :

Put the JWT Token to the Authorization header and you are logged in.

Now comes fun part you can view all the users

Create A New User

Update A User

Delete A User

Get Nearby Cabs For This you need to give you need to give your current location and NearByRange in kilometers.

Get All Bookings of a User (Only logged in user can access)

Create A New Booking (Only logged in user can book)

uber_like_api's People

Contributors

asifk1997 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.