Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 1.99 KB

readme.md

File metadata and controls

67 lines (47 loc) · 1.99 KB

RealWorld Example App

Go codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.

This codebase was created to demonstrate a fully fledged fullstack application built with Go including CRUD operations, authentication, routing, pagination, and more.

We've gone to great lengths to adhere to the Go community styleguides & best practices.

For more information on how to this works with other frontends/backends, head over to the RealWorld repo.

Getting started

Installing and setting up Go

Getting the Project

go get github.com/kartikkh/Medium
cd $GOPATH/src/github.com/kartikkh/Medium

Setting up the Database

  • Since project has been using GORM
  • Install listed Database from Here onto your System
  • Configure the Database onto your System

Setting up Environment Variable

Create a .env file in root directory and add

dbUser = 'DatabaseUsername'
dbPassword = 'DatabasePassword'
JWT_SECRET = SUPERSECRETKEY
port = 3000

Building and Running

go build
./Medium

Testing

go test
# -v for verbose

Contributing

  • Comment one which issue you'd like to do
  • Fork the project then get the project: Getting the project
  • Now you have your own project URL (from your fork)
git remote rename origin upstream
git remote add origin {YOUR_URL}
  • After your first change make a PR with [WIP] (work in progress) added to the title.
  • When your ready for review assign one of us Gophers 🐹