Skip to content

vshjxyz/login-form-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Login form example

A simple example of a login form with validation. Done with React + redux + express (server-side).

The application is universal and the form is rendered both server and client side.

Install

npm i
npm run dev # dev mode with live JS and CSS reload
npm run build # minifies and builds the assets under the dist/ directory
npm start # starts the server in production mode

How to run tests

Install chrome driver and selenium server

git clone https://github.com/sebv/sv-selenium
./sv-selenium/bin/install_selenium
./sv-selenium/bin/install_chromedriver
./sv-selenium/bin/start_selenium_with_chromedriver

then run the server in production mode and npm test

npm run build && npm start &
npm test # runs nightwatch.js and executes the functional tests

Releases

No releases published

Packages

No packages published