go-webapp-starter

command module
v0.0.0-...-cd5feb8 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: Unlicense Imports: 7 Imported by: 0

README

go-webapp-starter

A web application starter project in golang

Project Structure

├── Makefile
├── README.md
├── auth
│   └── auth.go
├── db
│   └── mongodb.go
├── index
│   └── index.go
├── main.go
├── routes.go
└── user
    ├── dao.go
    └── user.go

How to run?

  • git clone https://github.com/prakashpandey/go-webapp-starter.git

  • cd go-webapp-starter

  • make build && make run

  • It starts at default address http://localhost:8284

Apis
  • /

  • /user: Methods allowed [POST, DELETE]

Packages

main

Package main is our main package. File main.go starts our server. File route.go defines all routes.

auth

Contains code to authenticate client request.

db

db package must implement all the dao interfaces.

index

A sample package implementing hello world functionality.

user

Package user implement user CRUD operations.

LICENSE

The Unlicense, please visit LICENSE for more information.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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