Simple boilerplate that include all good stuff - webpack, react, eslint, prettier and pre-hooks
npm ci
Running development server:
npm start
Open webrowser on localhost:8080
npm run build:production
Move dist files to your server
Generating self signed ssl certificates. You can skip this and go streight to deployment section if you whish to proceed whithout encryption
In repository create folder certs
mkdir certs
openssl genrsa 2048 > certs/server.key
chmod 400 certs/server.key
openssl req -new -x509 -nodes -sha256 -days 365 -key certs/server.key -out certs/server.crt
npm run docker:deploy
or for SSL version
npm run docker:deploy:ssl
npm run docker:build
or
npm run docker:build:ssl
npm run docker:run
or for SSL version
npm run docker:run:sll
Open webrowser on localhost or https://localhost
After docker deployment you can procced with simply these commands
npm run docker:start
npm run docker:stop
npm run docker:removeContainer
It occurs that node-sass package doesn't have compiled armv7l version of its binary so i decided to compile one. In order to get boilerplate fully work with your arm7l architecture just simply checkout to armv7l
branch and proceed instalation from it.