Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhdbs/go-fullauth-jwt-sengrid
https://github.com/mhdbs/go-fullauth-jwt-sengrid
auth golang mysql redis send-mail sendgrid
Last synced: about 4 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/mhdbs/go-fullauth-jwt-sengrid
- Owner: mhdbs
- Created: 2018-11-29T06:11:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-01T12:31:57.000Z (almost 6 years ago)
- Last Synced: 2024-01-26T05:13:07.079Z (10 months ago)
- Topics: auth, golang, mysql, redis, send-mail, sendgrid
- Language: Go
- Size: 12.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
_____________________________________________________________________________________________
# 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- wget http://download.redis.io/releases/redis-4.0.10.tar.gz
- tar xzf redis-4.0.10.tar.gz
- cd redis-4.0.10
- make
- make install
_____________________________________________________________________________________________
# Install goInstall 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 MYSQLWe 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:5b36dd754e7752162f890206fae50931sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb
sudo apt-get update
sudo apt-get install mysql-serverIt 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