log-in-form.co.nf - login form based on React
Depending on preferred package manager execute yarn install
or npm install
command.
Copy config.json.dist
to config.json
file.
If preferred, change email or password in config.json
file. To generate password hash use npm run bcrypt <new password>
or npm run bcrypt <new password>
.
Default email: [email protected]
, default password: Password1.
.
There is no build assets version attached with this repository. To build them run npm run build
or yarn run build
.
Run public/index.html in favorite browser. Consider only last two versions of major browsers and IE10+ are supported.
Command: npm test
or yarn test
To rebuild assets every time they change execute npm run build:dev
or yarn run build:dev
.
There is a better way: npm run watch
or yarn run watch
command will continue running in terminal and watch all relevant files for changes.
Webpack will then automatically recompile assets when it detects a change.
It's possible to use Webpack DevServer. To start it use npm run start
or yarn run start
To specify a port number to listen for requests on, modify webpack.config.babel.js
Default server port is 3000.
Minified (so called "production") version of assets can be build with npm run build
or yarn run build
.
Available NPM or Yarn scripts:
npm run build
oryarn run build
combine related scripts/styles and minimizes them with Webpack.npm run build:dev
oryarn run build:dev
combine related scripts/styles with Webpack.npm start
oryarn start
runs Webpack DevServer.npm run lint
oryarn run lint
runs ESLint source code check.npm test
oryarn test
runs tests.npm run watch
ornpm run watch
runs combination of related scripts/styles in Webpack's watch mode.npm run flow
oryarn flow
runs Flow static type checker.npm run bcrypt <password>
oryarn run bcrypt <password>
generates Bcrypt hash of given<password>