A SailsJS Progressive Web App boilerplate application that demonstrates a single page Login/Authentication using the following libraries:
- NodeJS
- SailsJS
- ReactJS
- React Hot Loader
- React-Router
- Redux *
- Redux-Sega
- Service Workers
- Material UI
- Webpack
- Mocha
- Ghoulies
This boilerplate app also includes unit tests:
- example Client Side React Tests
- example Server-Side Model Tests
- example Server-Side Controller Tests
- example Ghoulies Integration Test
Clone boilerplate:
git clone https://github.com/mshameer/progressive-web-app-login-react-sails.git
cd progressive-web-app-login-react-sails
Install prerequisites:
npm install
Build and run development server:
npm run dev
Build and run production server:
npm run prod
Run client-side tests:
npm run client:test
Run client-side tests continuously:
npm run client:test:watch
Run server-side tests:
npm run server:test:watch
Run server-side tests continuously:
npm run server:test:watch
Run integration test:
npm run ghoulies
Run integration test continuously:
npm run ghoulies:watch
Install docker and virtualbox (these commands are for MacOS):
brew cask install virtualbox
brew install docker
curl -L https://github.com/docker/machine/releases/download/v0.9.0/docker-machine-`uname -s`-`uname -m` >/usr/local/bin/docker-machine && chmod +x /usr/local/bin/docker-machine
curl -L "https://github.com/docker/compose/releases/download/1.10.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose
docker-machine create --driver=virtualbox default
eval $(docker-machine env default)
Find the virtual machine ip address:
docker-machine ls
Run the docker container:
docker-compose up
Open browser to the virtual machine ip address:
http://192.168.99.100:1337