social-network

command
v0.0.0-...-4e6cce8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 27 Imported by: 0

README

This is an example social media backend: see how this is generated from scratch.

Generated files in this example

  • graphql_models/*
  • models/*
  • helpers/*
  • resolver.go

TODO: make Youtube video for this example

Steps to make this project

  1. Start MariaDB container with social network.sql
    docker-compose up -d

  2. Generate /models/* files
    sqlboiler mysql --no-back-referencing -d

    --no-back-referencing if you don't set it your program will crash with recursive converts!

  3. Generate schema.grapql, converts (helpers/*) and resolver.go go run convert_plugin.go

  4. ...Let's go!
    go run server.go resolver.go database.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL