Skip to content

ashalfarhan/realworld

 
 

Repository files navigation

RealWorld Example App

[Gorilla Mux] 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 backend service built with [Gorilla Mux] including CRUD operations, authentication, routing, pagination, and more.

We've gone to great lengths to adhere to the [Gorilla Mux] community styleguides & best practices.

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

How it works

This is a backend implementation of Conduit (Medium Clone) built with Go Programming Language.

Prerequisite

Getting started

  • Clone this repo.
    git clone https://github.com/ashalfarhan/realworld.git
  • Install dependencies
    go mod tidy
  • Start PostgreSQL and Adminer with docker-compose
    make start-db
  • Run schema migrations with migrate
    make migrate-up
  • Start the server
    go run .
    Or using live reload like Air

Testing

  • Unit Testing
    make test
  • E2E Testing with Conduit Spec (Postman)
    make test-spec

Todo

  • Containerize with Docker

About

Backend Implementation of Conduit (Medium Clone) built using Go

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages

  • Go 98.5%
  • Other 1.5%