https://github.com/prakashpandey/go-webapp-starter
A web application starter project in golang
https://github.com/prakashpandey/go-webapp-starter
go golang golang-application golang-examples golang-library golang-package golang-router golang-sdk golang-server golang-tools golang-wrapper starter-project web webapp
Last synced: 5 months ago
JSON representation
A web application starter project in golang
- Host: GitHub
- URL: https://github.com/prakashpandey/go-webapp-starter
- Owner: prakashpandey
- License: unlicense
- Created: 2019-01-21T12:33:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-29T07:49:07.000Z (over 7 years ago)
- Last Synced: 2024-06-20T10:18:34.114Z (about 2 years ago)
- Topics: go, golang, golang-application, golang-examples, golang-library, golang-package, golang-router, golang-sdk, golang-server, golang-tools, golang-wrapper, starter-project, web, webapp
- Language: Go
- Homepage: https://godoc.org/github.com/prakashpandey/go-webapp-starter
- Size: 26.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-webapp-starter
A web application starter project in golang
## Project Structure
```bash
├── 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](LICENSE) for more information.