An open API service indexing awesome lists of open source software.

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

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.