evatix_users_api

command module
v0.0.0-...-3721714 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

Users API

To Run the Project:

  • Go lang installed
  • Put the project in
$GOPATH/src/github.com/abmomin/evatix_users_api

Dependecies: for details please refet to this page https://github.com/gin-gonic/gin

go get github.com/gin-gonic/gin

Database: Used MySql Database, Please install mysql driver for Golang.

go get github.com/go-sql-driver/mysql

Database configuaration: Lets set some environment variables.

please configure as your datasource.

mysqlUsersUserName=//user name
mysqlUsersPassword=//password
mysqlUsersHost= //localhost
mysqlUsersSchema=//users

Now with all that done please create a users table in users database.

create table users(userId int primarykey, firstName varchar(20), lastName varchar(20), email varchar(20), dateCreated varchar(20), status tinyint, password varchar(50)); 

After all done, Please go to project root directory and run with golang commad

go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
controllers
datasources
domain
utils

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL