GithubHelp home page GithubHelp logo

jwsong / gobuff_realworld_example_app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from remast/gobuff_realworld_example_app

0.0 0.0 0.0 215 KB

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

Go 57.86% HTML 41.01% Dockerfile 1.13%

gobuff_realworld_example_app's Introduction

Github Actions

RealWorld Example App

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

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

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

Getting started

1. Start the app

buffalo dev

2. Start the database

docker run --name rw_db -e POSTGRES_DB=gobuff_realworld_example_app_development -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -p 5432:5432 -d postgres

3. Update the database

buffalo pop migrate

If you point your browser to http://127.0.0.1:3000 you should see the home page.

Running the tests

buffalo test --force-migrations
buffalo test models -m "ArticleFavorite" --force-migrations

How it works

Buffalo web application with server side rendering, server side user session and PostgreSQL database.

Authentication

Authentication is generated by Auth Generator for Buffalo.

Pagination of Articles

Uses pop's paginator as described in Pagination.

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.