https://github.com/itaditya/mvc-go
A CRUD Application written in Golang based on MVC Architecture
https://github.com/itaditya/mvc-go
12-factor-app golang golang-module javascript ssr
Last synced: 3 months ago
JSON representation
A CRUD Application written in Golang based on MVC Architecture
- Host: GitHub
- URL: https://github.com/itaditya/mvc-go
- Owner: itaditya
- Created: 2018-12-16T04:42:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-16T06:44:35.000Z (over 7 years ago)
- Last Synced: 2025-04-06T12:26:36.514Z (over 1 year ago)
- Topics: 12-factor-app, golang, golang-module, javascript, ssr
- Language: Go
- Homepage: https://mvc-go.herokuapp.com/users
- Size: 11.7 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# MVC CRUD App in Golang
Resources on how to build complete Golang applications are scarce and not easily found. Coming from a Node.js background, I have built this project to demo a CRUD application in which we can add and delete users with complete frontend integrations following best practises of the Web Development world.
:warning: **Disclaimer-** I am in the process of learning Golang so I can't guarantee that the Go code is idiomatic. Any suggestions and nitpickings are welcome.
## Setup Guide
1. Install Golang(v 1.11.3 or higher), setup `GOPATH` and make sure `GOPATH/bin` is in the `PATH` env variable.
1. Install `beego` cli tool.
1. Clone this project in a folder outside `GOPATH` (because we are using Go Modules).
1. `cd` into the project.
1. Install all dependencies with `go get -u`.
1. Rename `.env.example` to `.env` and provide the necessary information like Database URI etc.
1. Start server with `bee run`.