social-network

command module
v0.0.0-...-889354b Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: MIT Imports: 26 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 -d

  3. Generate graphql schema based on sqlboiler files
    go run github.com/web-ridge/sqlboiler-graphql-schema --output=schema.graphql --skip-input-fields=userId --directives=isAuthenticated

  4. Generate /graphql_models/* + resolver.go
    go run convert_plugin.go

  5. ...Let's go!
    go run server.go resolver.go

Documentation

Overview

THIS CODE IS A STARTING POINT ONLY. IT WILL NOT BE UPDATED WITH SCHEMA CHANGES.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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