Show HN: A Full-Stack Web Framework for Go
source link: https://github.com/livebud/bud
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
The Fullstack Go Framework for Prolific Web Developers.
Bud writes the boring code for you, helping you launch your website faster.
Watch a video demonstrating how to build a minimal HN clone in 15 minutes with Bud.
Read the documentation to learn how to get started with Bud.
Bud ships as a single binary that runs on Linux and Mac. You can follow along for Windows support in this issue.
The easiest way to get started is by copying and pasting the command below in your terminal:
$ curl -sf livebud.com/install | sh
This script will download the right binary for your operating system and move the binary to the right location in your
Confirm that you've installed Bud by typing
bud in your terminal.
You should see the following:
Usage: bud [flags] [command] Flags: -C, --chdir Change the working directory Commands: build build the production server create create a new project run run the development server tool extra tools version Show package versions
Your First Project
With bud installed, you can now scaffold a new project:
$ bud create hello $ cd hello
The create command will scaffold everything you need to get started with bud.
$ ls go.mod node_modules/ package-lock.json package.json
... which is not very much by the way! Unlike most other fullstack frameworks, Bud starts out very minimal. As you add dependencies, Bud will generate all the boring code to glue your app together. Let's see this in action.
Start the development server with
$ bud run | Listening on http://0.0.0.0:3000
Click on the link to open the browser. You'll be greeted with bud's welcome page.
Congrats! You're running your first web server with Bud. The welcome server is your jumping off point to learn more about the framework.
Aggregate valuable and interesting links.
Joyk means Joy of geeK