Barrito - barcode generator - frontend

Bence Balint 19133e6620 Merge branch 'devops-37' of kraxor/barrito-frontend into develop %!s(int64=3) %!d(string=hai) anos
.idea 35213524cf DEVOPS-37 prepare for dockerization %!s(int64=3) %!d(string=hai) anos
public 02e10a4502 BF-21 change application name %!s(int64=3) %!d(string=hai) anos
src aabd8c3bc6 DEVOPS-37 add Dockerfile + build && deploy scripts %!s(int64=3) %!d(string=hai) anos
.env aabd8c3bc6 DEVOPS-37 add Dockerfile + build && deploy scripts %!s(int64=3) %!d(string=hai) anos
.env.prod aabd8c3bc6 DEVOPS-37 add Dockerfile + build && deploy scripts %!s(int64=3) %!d(string=hai) anos
.eslintignore 228aa30258 Initialize project using Create React App %!s(int64=4) %!d(string=hai) anos
.eslintrc 3476d174a1 force unix linebreaks %!s(int64=3) %!d(string=hai) anos
.gitignore 228aa30258 Initialize project using Create React App %!s(int64=4) %!d(string=hai) anos
.prettierrc 228aa30258 Initialize project using Create React App %!s(int64=4) %!d(string=hai) anos
Dockerfile aabd8c3bc6 DEVOPS-37 add Dockerfile + build && deploy scripts %!s(int64=3) %!d(string=hai) anos
README.md aabd8c3bc6 DEVOPS-37 add Dockerfile + build && deploy scripts %!s(int64=3) %!d(string=hai) anos
README_CRA.md 228aa30258 Initialize project using Create React App %!s(int64=4) %!d(string=hai) anos
build.sh aabd8c3bc6 DEVOPS-37 add Dockerfile + build && deploy scripts %!s(int64=3) %!d(string=hai) anos
deploy.sh aabd8c3bc6 DEVOPS-37 add Dockerfile + build && deploy scripts %!s(int64=3) %!d(string=hai) anos
nginx.conf aabd8c3bc6 DEVOPS-37 add Dockerfile + build && deploy scripts %!s(int64=3) %!d(string=hai) anos
package.json 505f641286 BF-20 basic sentry react + redux integration %!s(int64=3) %!d(string=hai) anos
tsconfig.json bb167ec930 add AspectRatio component %!s(int64=4) %!d(string=hai) anos
yarn.lock 505f641286 BF-20 basic sentry react + redux integration %!s(int64=3) %!d(string=hai) anos

README.md

Barrito frontend

Barcode generator frontend.

Development server

Install dependencies:

yarn install

Start development server:

yarn start

Open your browser at http://localhost:3000. (Automatic opening of the browser is disabled.)

The default backend URL is http://dev.api.barrito.kraxor.net, you can change it in .env.

Production

Build Docker image locally:

./build.sh

Deploy built docker image:

./deploy.sh <hostname> <private_ip>

... where hostname is the server and private_ip is the IP address to bind to. Example with the kraxor.net local Vagrant infrastructure:

./deploy.sh 192.168.2.4 10.0.0.4

The default backend URL is https://api.barrito.kraxor.net, you can change it in .env.prod.