reader-sample

command module
v0.0.0-...-1b5478c Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

README

reader

sample REST API how to make skeleton code on golang. for easy learn

depdency

depedency for installing this skeleton code.

go get github.com/badoux/checkmail
go get github.com/jinzhu/gorm
go get golang.org/x/crypto/bcrypt
go get github.com/dgrijalva/jwt-go
go get github.com/gorilla/mux
go get github.com/jinzhu/gorm/dialects/mysql" //If using mysql 
go get github.com/jinzhu/gorm/dialects/postgres //If using postgres
go get github.com/joho/godotenv
go get gopkg.in/go-playground/assert.v1
go get github.com/gorilla/websocket
go get github.com/novalagung/gubrak

last update

1.add chat function easy using library chat with handle chatroom
2.email sender
3.file uploader

How to use

we have structure like this,and you can create your own project like this

config        //for configuration about create middleware,create route version 1.0 
controller   //make controller you can make own process using models query etc.
core         //core of enginne this skeleton it's about processing it can be use more than one project so it's useable function
database     //you can make operation about migration,and seeder on this folder
models       //make models data im using ORM, and schema for migration data.
main.go     //main process from config,and core first running apps
.env        //environment you can make some easy config from this file

contribution

you can request merge if you have some good idea.im open how to make this can be reusable clean and easy to learn for newbie from golang

to do

  • core upload file
  • more error handling
  • core csv
  • core pdf
  • core UI

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
core
database

Jump to

Keyboard shortcuts

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