Skip to content

Roman digital clock, using Golang, React, and Docker

License

Notifications You must be signed in to change notification settings

bucrogers/romachron

Repository files navigation

romachron

Table of Contents
  1. Run from Docker
  2. Run natively (without Docker)

Introduction

Roman digital clock, using Golang and React

Run from Docker

  • Prequisite: Docker installed
  • Pulls images from dockerhub by default. To build from local changes, specify --build
  • For Windows (not using WSL / Bash), subsitute powershell script run.ps1 for run.sh below

Fastest launch

./run.sh

Build from source, with layer-caching

./run.sh --build

Stop

./run.sh stop

Run natively (without Docker)

All instructions below assume brew package manager (available for MacOS and Linux (including Windows WSL)

Prerequisites

  • Tested on go 1.19, node 16.17.0. The steps below will install these or newer versions.
  • brew package manager assumed (available for MacOS, Linux / WSL)
brew install go
brew install nvm
nvm install --lts

First-time clone prerequisites

cd frontend
npm install

Startup server and frontend

server (leave terminal window open)

cd server
go run main.go

frontend (leave terminal window open)

cd frontend
npm start