Giter Club home page Giter Club logo

prisma-go-hackernews's Introduction

go-graphql

Prerequistes

  • Prisma cli version 1.19.0-alpha21 installed
  • Go installed
  • gqlgen installed

Getting started

~ $ git clone https://github.com/Sach97/prisma-go-hackernews/edit/master/README.md 
~ $ cd prisma-go-hackernews
prisma-go-hackernews $ dep ensure
prisma-go-hackernews $ docker-compose up -d # (kill your docker container running with you have errors)
prisma-go-hackernews $ go run server/*.go # Install missing dependencies then rerun this command

Development Workflow

  • Modify your datamodel.prisma
  • prisma deploy
  • Modify your schema.graphql
  • gqlgen -v (must be executed in your GOPATH)
  • Modify your generated tmp/resolver with the prisma generated types
  • run server

TODOs

  • Auth and permissions

prisma-go-hackernews's People

Contributors

sachaarbonel avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

prisma-go-hackernews's Issues

how to run ?

Thanks for diving into this. I too am interested in Prisma.

But i cant get it to run.

My Make file:

# https://github.com/Sach97/prisma-go-hackernews

LIB=github.com/Sach97/prisma-go-hackernews
LIB_FSPATH=$(GOPATH)/src/$(LIB)



print:
	@echo

	@echo
	@echo LIB -
	@echo LIB: $(LIB)
	@echo LIB_FSPATH: $(LIB_FSPATH)
	@echo


dep:
	go get -u $(LIB)

dep-vendor:
	cd $(LIB_FSPATH) && dep ensure

run-server:
	cd $(LIB_FSPATH)/server && go run server.go
	
run-server-docker:
	cd $(LIB_FSPATH) && docker-compose up -d

for run.server i get:


./server.go:21:14: undefined: Resolver
./server.go:26:40: undefined: NewExecutableSchema
./server.go:26:60: undefined: Config

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.