GithubHelp home page GithubHelp logo

gocopper / copper Goto Github PK

View Code? Open in Web Editor NEW
941.0 9.0 31.0 387 KB

πŸš€β€β€β€Ž β€Žβ€β€β€Žβ€β€β€Žβ€Žβ€Žβ€Žβ€Žβ€ŽCopper is a Go toolkit complete with everything you need to build web apps.

Home Page: https://gocopper.dev

License: MIT License

Go 98.38% Makefile 0.45% HTML 1.18%
golang go web api router middleware service

copper's Introduction

Copper logo

Go Report Card Go Doc


Copper

Copper is a Go toolkit complete with everything you need to build web apps. It focuses on developer productivity and makes building web apps in Go more fun with less boilerplate and out-of-the-box support for common needs.

πŸš€ Fullstack Toolkit

Copper provides a toolkit complete with everything you need to build web apps quickly.

πŸ“¦ One Binary

Build frontend apps along with your backend and ship everything in a single binary.

πŸ“ Server-side HTML

Copper includes utilities that help build web apps with server rendered HTML pages.

πŸ’‘ Auto Restarts

Copper detects changes and automatically restarts server to save time.

πŸ— Scaffolding

Skip boilerplate and scaffold code for your packages, database queries and routes.

πŸ”‹ Batteries Included

Includes CLI, lint, dev server, config management, and more!

πŸ”© First-party packages

Includes packages for authentication, pub/sub, queues, emails, and websockets.


Intro Video (Hacker News Clone)


Getting Started

Head over to the documentation to get started - https://docs.gocopper.dev/

Join us on Discord here - https://discord.gg/fT2AEZyM6A


License

MIT

copper's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

copper's Issues

copper create error running HN tutorial: missing hn/web/package.json

golang$ copper create -frontend=go:tailwind github.com/bfollek/hn
  ERROR   Create github.com/bfollek/hn with frontend=go:tailwind, storage=gorm:sqlite (Took 4.234s)
          failed to apply go:tailwind code mod because
          > failed to add npm scripts where wd=hn because
          > failed to open file where fp=hn/web/package.json because
          > open hn/web/package.json: no such file or directory

cannot use r.db (type *"gorm.io/gorm".DB) as type *"github.com/jinzhu/gorm".DB

I'm trying to build tutorial app using copper but following error occured.

func (r *PostsRepo) GetPostByID(ctx context.Context, id string) (*Post, error) {
	db := csql.GetConn(ctx, r.db)
	fmt.Println(db)
	return nil, nil
}
.\main.go:30:27: cannot use r.db (type *"gorm.io/gorm".DB) as type *"github.com/jinzhu/gorm".DB in argument to csql.GetConn

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.