apps-crud-gps

command module
v0.0.0-...-427d44f Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 1 Imported by: 0

README

APPS-CRUD-GPS

This repo code with golang Rest API , database Postgresql and some package in github and 2 level auth with Middleware,

  • Cobra
  • Viper
  • Mux
  • JWT-go
  • Gorm
  • Postgres

Feature

  • 2 Level User admin and user
  • Register New User
  • Read all user register for admin (only)
  • Update Password for user
  • Create new data GPS
  • Read all data GPS
  • Delete data GPS
  • Update data GPS
Installation.

Install the package before start the server.

$ go get github.com/dgrijalva/jwt-go
$ go get github.com/spf13/viper 
$ go get golang.org/x/crypto/bcrypt
$ go get github.com/lib/pq
$ go get github.com/jinzhu/gorm
$ go get github.com/spf13/cobra
Run Apps

make database name same with in configs/config.toml: setting your config database in configs/config.toml Run Migration table and some dummy data:

$ go run application/migration/migrate.go

run the apps:

$ go run main.go

If you have disscus ||~

Just Contact Me At:

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
application
api

Jump to

Keyboard shortcuts

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