Giter Club home page Giter Club logo

go-choo-starter's Introduction

go-choo-starter

Starter for choo projects with Go backend. No configuration needed.

How It Works?

  • Renders choo views on server-side with go-duktape.
  • Provides a simple Makefile to manage your project;
    • make start starts everything
    • make stop stops all
    • make develop starts the server and watches everything (Go, JS, CSS) for changes.
    • make setup installs all dependencies (Go and JS)

Install

Clone the repo and install the dependencies:

git clone [email protected]:azer/go-choo-starter.git hello-world
cd hello-world
make setup # Runs `go get` and `npm install` for you.

First Steps

Here is how you start the server:

make develop

develop watches your code (Go, JS and CSS) and applies changes immediately. If you don't need that, you can run make start and make stop commands. You should use these two commands when you're not actively changing your code.

Coding

  • Create UI components under ui/components/ folder and route them at ui/app.js
  • Create API endpoints at server/api.go like the example there.
  • Use make go-get to fetch dependencies when you have new dependencies in the backend.
  • Any file under ./public directory will be online at same path.
  • Run make build to build everything. Run make go-build and make ui-build to build each separately.
  • Run make clean to clean everything. Run make go-clean and make ui-clean to clean each separately.

go-choo-starter's People

Contributors

m90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.