https://github.com/xesina/golang-echo-realworld-example-app
Exemplary real world backend API built with Golang + Echo
https://github.com/xesina/golang-echo-realworld-example-app
echo go golang realworld-backend
Last synced: 5 months ago
JSON representation
Exemplary real world backend API built with Golang + Echo
- Host: GitHub
- URL: https://github.com/xesina/golang-echo-realworld-example-app
- Owner: xesina
- License: mit
- Fork: true (gothinkster/realworld-starter-kit)
- Created: 2018-05-07T10:23:11.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-07T14:30:34.000Z (about 4 years ago)
- Last Synced: 2024-08-10T09:53:50.731Z (almost 2 years ago)
- Topics: echo, go, golang, realworld-backend
- Language: Go
- Homepage: https://realworld.io
- Size: 201 KB
- Stars: 491
- Watchers: 15
- Forks: 127
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# 
> ### Golang/Echo codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld) spec and API.
### [Demo](https://github.com/gothinkster/realworld) [RealWorld](https://github.com/gothinkster/realworld)
[](https://travis-ci.org/xesina/golang-echo-realworld-example-app)
This codebase was created to demonstrate a fully fledged fullstack application built with **Golang/Echo** including CRUD operations, authentication, routing, pagination, and more.
## Getting started
### Install Golang (go1.11+)
Please check the official golang installation guide before you start. [Official Documentation](https://golang.org/doc/install)
Also make sure you have installed a go1.11+ version.
### Environment Config
make sure your ~/.*shrc have those variable:
```bash
➜ echo $GOPATH
/Users/xesina/go
➜ echo $GOROOT
/usr/local/go/
➜ echo $PATH
...:/usr/local/go/bin:/Users/xesina/test//bin:/usr/local/go/bin
```
For more info and detailed instructions please check this guide: [Setting GOPATH](https://github.com/golang/go/wiki/SettingGOPATH)
### Clone the repository
Clone this repository:
```bash
➜ git clone https://github.com/xesina/golang-echo-realworld-example-app.git
```
Or simply use the following command which will handle cloning the repo:
```bash
➜ go get -u -v github.com/xesina/golang-echo-realworld-example-app
```
Switch to the repo folder
```bash
➜ cd $GOPATH/src/github.com/xesina/golang-echo-realworld-example-app
```
### Install dependencies
```bash
➜ go mod download
```
### Run
```bash
➜ go run main.go
```
### Build
```bash
➜ go build
```
### Tests
```bash
➜ go test ./...
```