Git Product home page Git Product logo

node-gigya-boilerplate's Introduction

Node Gigya Boilerplate

Travis CI status

Boilerplate Node.js App using the Gigya accountJS Raas service. This project is intended to be used as a starting point for anyone working with the gigya platform on node.js

Support: raise an issue on github https://github.com/maxmckenzie/node-gigya-boilerplate/issues

Features

  • babel es2015 and stage-0
  • mocha unit tests
  • webdriverio integration e2e tests using chimp
  • direnv directory based environment variables (so you do not need to install global node modules)
  • Travis CI support
  • Express server
  • ejs templating

Install Dependencies

The blow steps are for OSX, but you could replace brew with yum or apt-get and it should still work.

Windows user: your on your own with how to install but you still need the below installed. Also be aware that some of the commands in the packages.json may not work on a windows box. Linux or OSX is suggested for this Boilerplate.

You should use node v6.10.1 Long term support or cucumber will not report errors correctly

  • brew install node
  • brew install direnv

Install App

  • npm install
  • direnv allow

Run Dev

  • npm run dev

This boots the app runs the unit and e2e tests. Then uses nodemon to wait for changes. When a change happens the node server is rebooted and the tests are run again

mocha --watch and similar has an issue. To run the server on test you need to add an import to the test.js file. When watching this cause a EDDRINUSE error (the server is already booted). running the stack with nodemon avoids this

Production

  • npm run build
  • npm start

ToDo

  • .github/ template files
  • Gigya intergration

node-gigya-boilerplate's People

Contributors

maxmckenzie avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

geekvikas

node-gigya-boilerplate's Issues

views do not exist on prod build

Error: Failed to lookup view "pages/index" in views directory "/Users/maxmckenzie/Development/gigya/node-gigya-boilerplate/dist/views"

due to the organisation of the view directory inside of the src folder npm run build and npm start does not pick up the templates. This could be solved by moving it to root. But i don't really want to do that.

I would prefer that it stayed there, used es6 along with the assets directory then using something like webpack to built it all out to the dist folder.

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.