GithubHelp home page GithubHelp logo

react_golang's Introduction

GoDoRP

GoDoRP (Golang, Docker, React, Postgres) project starter.

Disclaimer: This project is not actively supported and not recommended for production apps. Hope it serves as a learning resource.

Features

  • Start a GoDoRP project with one command on any computer with docker-compose installed
  • Dev mode features hot reloading on code changes for both the GoLang backend and React frontend (no need to rebuild containers while coding)
  • Production mode features optimized static React frontend and binary goLang backend
  • Production images built by passing a single arg option (images can then run on any computer with Docker)

Benefits

  • Anyone can contribute to your project locally without having to setup/install GOPATH, Postgres, node etc
  • Dev environment is the same as production environment
  • Quickly get your GoDoRP project off the ground
  • Forking the repo allows for customization of the template for your preferences

Getting started:

  • download docker-compose if not already installed Then run the following commands:
$ mkdir myApp
$ cd myApp
$ git clone https://github.com/McMenemy/GoDoRP.git .
$ docker-compose up

Then you can open the React frontend at localhost:3000 and the RESTful GoLang API at localhost:5000

Changing any frontend (React) code locally will cause a hot-reload in the browser with updates and changing any backend (GoLang) code locally will also automatically update any changes.

Then to build production images run:

$ docker build ./api --build-arg app_env=production 
$ docker build ./frontend --build-arg app_env=production
$ docker build ./db

react_golang's People

Contributors

atilkan avatar mikapower avatar

Watchers

James Cloos 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.