Skip to content

Webpack, react, eslint, prettier and pre-hooks boilerplate

Notifications You must be signed in to change notification settings

lukaskwkw/wrepp-boilerplate

Repository files navigation

Wrepp

Simple boilerplate that include all good stuff - webpack, react, eslint, prettier and pre-hooks

Prerequisites:

NodeJS v12.2.0

Installation

npm ci

Running development server:

npm start

Open webrowser on localhost:8080

Building

npm run build:production

Move dist files to your server

Docker

Prerequisites:

Docker

SSL Encryption

Generating self signed ssl certificates. You can skip this and go streight to deployment section if you whish to proceed whithout encryption

Linux

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

Deployment

One command for build and run

npm run docker:deploy

or for SSL version

npm run docker:deploy:ssl

Building

npm run docker:build

or

npm run docker:build:ssl

Running

npm run docker:run

or for SSL version

npm run docker:run:sll

Open webrowser on localhost or https://localhost

Container management

After docker deployment you can procced with simply these commands

npm run docker:start
npm run docker:stop
npm run docker:removeContainer

ARMv7L support

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.

About

Webpack, react, eslint, prettier and pre-hooks boilerplate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published