Rest API using gin , jwt and mysql.
You can found API Documentation in here : http://demo.degananda.com/ridesharing/
driver [email protected]:dega123
passenger [email protected]:dega123
password encryoted with bcrypt (base 10).
1.Install ridesharing api
go get github.com/degananda/ridesharing
2.Import sql ridesharing.sql to your database
3.Setting mysql conneciton & database
model/connection.go
func DbConnect() {
Db, err = sql.Open("mysql", "root@tcp(127.0.0.1:3306)/ridesharing")
}
go run *.go