Skip to content

mhdbs/go-fullAuth-jwt-sengrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Install Java

Install oracle java by following https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-18-04


Redis Installation


Install go

Install golang from this site.

https://golang.org/doc/install

The version used in development was go1.10.3 linux/amd64

add export PATH=$PATH:/usr/local/go/bin to .bashrc
then do
source .bashrc
mkdir go


then install go dep (golang package manager)

go get -u github.com/golang/dep/cmd/dep


Then checkout our project in to go path
it will be
~/go/src/

make sure the resulting directory structure is like this
~/go/src/


Install MYSQL

We are using "mysql Ver 8.0.12 for Linux on x86_64 (MySQL Community Server - GPL)"

Goto https://dev.mysql.com/downloads/repo/apt/ and download

mysql-apt-config_0.8.10-1_all.deb
md5:5b36dd754e7752162f890206fae50931

sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb
sudo apt-get update
sudo apt-get install mysql-server

It should ask to set mysql password automatically just after installiing, if not:

sudo mysql_secure_installation

and answer the questions.


#Initiating

Run the redis server for caching.

Go to the directory ~/go/src/go-fullAuth-jwt-sengrid

install the dependencies packages by $ dep ensure -v

run the code by $ go run main.go

build the package by $ go build main.go and then type $ ./main

Releases

No releases published

Packages

No packages published

Languages