Giter Club home page Giter Club logo

react-progressive-webapp-authentication's Introduction

Progressive Web App Login/Authentication boilerplate for react, sails, redux, redux-saga

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

Installation


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

Client-side tests

Run client-side tests:

npm run client:test

Run client-side tests continuously:

npm run client:test:watch

Server-side tests

Run server-side tests:

npm run server:test:watch

Run server-side tests continuously:

npm run server:test:watch

Integration test

Run integration test:

npm run ghoulies

Run integration test continuously:

npm run ghoulies:watch

Docker Container


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

react-progressive-webapp-authentication's People

Contributors

mshameer avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.