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 | %!s(int64=3) %!d(string=hai) anos | |
public | %!s(int64=3) %!d(string=hai) anos | |
src | %!s(int64=3) %!d(string=hai) anos | |
.env | %!s(int64=3) %!d(string=hai) anos | |
.env.prod | %!s(int64=3) %!d(string=hai) anos | |
.eslintignore | %!s(int64=4) %!d(string=hai) anos | |
.eslintrc | %!s(int64=3) %!d(string=hai) anos | |
.gitignore | %!s(int64=4) %!d(string=hai) anos | |
.prettierrc | %!s(int64=4) %!d(string=hai) anos | |
Dockerfile | %!s(int64=3) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
README_CRA.md | %!s(int64=4) %!d(string=hai) anos | |
build.sh | %!s(int64=3) %!d(string=hai) anos | |
deploy.sh | %!s(int64=3) %!d(string=hai) anos | |
nginx.conf | %!s(int64=3) %!d(string=hai) anos | |
package.json | %!s(int64=3) %!d(string=hai) anos | |
tsconfig.json | %!s(int64=4) %!d(string=hai) anos | |
yarn.lock | %!s(int64=3) %!d(string=hai) anos |
Barcode generator frontend.
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
.
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
.