Socket
Socket
Sign inDemoInstall

github.com/ilham-dev/api-login-go-mysql

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/ilham-dev/api-login-go-mysql


Version published

Readme

Source

API-login-go-mysql

login API with bcrypt

How to Run ?

#1.Create The Database with name go_api

#2. Create Table create table with name users

CREATE TABLE `users` ( `id` INT(11) NOT NULL AUTO_INCREMENT , 
`username` VARCHAR(50) NOT NULL , 
`first_name` VARCHAR(200) NOT NULL , 
`last_name` VARCHAR(200) NOT NULL , 
`password` VARCHAR(120) NOT NULL , 
`email`	   VARCHAR(200) NOT null ,
PRIMARY KEY (`id`)) ENGINE = InnoDB;

#run you should import the library first in terminal

go get database/sql

go get golang.org/x/crypto/bcrypt

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

And here we go

go run main.go

FAQs

Last updated on 26 Feb 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc