Giter Site home page Giter Site logo

keyjin88 / realworld-gin-sqlc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aliml92/realworld-gin-sqlc

0.0 0.0 0.0 3.42 MB

Real world backend api made with Golang + Gin + PostgreSQL

Home Page: https://realworld.io

License: MIT License

Shell 0.48% Go 99.28% Makefile 0.24%

realworld-gin-sqlc's Introduction

RealWorld Example App

test License: MIT

Golang/Gin 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 Golang/Gin including CRUD operations, authentication, routing, pagination, and more.

How it works

Diagram

Getting started

Running the project locally:

    docker-compose up -d // starts postgres container
    go run main.go

Project starts on port 8085 by default and swagger documentation is available at http://localhost:8085/swagger/index.html.

E2E testing

First, run:

   make test-run 

This will start postgres container and the project itself. Then, run the tests with:

    make e2e-test

Unit testing

    make unit-test

TODO

  • Add unit tests for handlers (... in progress)
  • Improve error handling and logging
  • Improve deployment and testing configuration (Makefile, docker-compose, etc.) ( ... in progress)
  • Add search feature (/search, ...)

realworld-gin-sqlc's People

Contributors

aliml92 avatar ericsimons avatar geromegrignon avatar alonski avatar esakkiraj avatar optikfluffel avatar segmentationfaulter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.