GoDoRP

GoDoRP (Golang, Docker, React, Postgres)

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者thetechnocrat-dev/GoDoRP
主編程語言JavaScript
編程語言Go (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2017-02-10 22:52:42
推送於2018-12-22 00:12:30
最后一次提交2018-01-31 21:55:12
發布數0
用户参与
星數207
關注者數7
派生數48
提交數34
已啟用問題?
問題數5
打開的問題數2
拉請求數2
打開的拉請求數1
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?