👌Web App demonstrating Gigya's Social Login API 🔥
This Web App is a demonstration of Gigya's Social Login API.
npm i
to install needed dev dependenciesnpm run dev
to start the development serverlogin.html
- if not in use already the addresses we are interested in are http://localhost:5000/login
and http://localhost:5000/welcome
npm i
to install needed dev dependenciesnpm t
to start the development servercoverage/lcov-report/index.html
timesLoggedIn
cookie gets created the first time a user logs in having as initial value 1 which gets incremented every time the user logs back in the application. This cookie's expiration date is one year after the user's last log in./welcome
screen without having signed in yet, she will get redirected back to /login
.The project contains:
public
, src
, test
(WIP) and docs
.babelrc
file to set the configuration of the javascript compilationrollup.config.js
file to set the configuration of the project's bundlingjest.config.js
file to set the configuration of jest for testingpackage.json
file with information about the project (dependencies needed, author, etc.)public
directoryThe public
directory contains the 2 main html files of this project:
login.html
is the starting screen. In this screen the user is able to select the social login that she would like to use to sign in.welcome.html
contains useful information about the user, gathered from the login process. In addition to that in this screen the user is able to share a post and logout using Gigya's API.public
directory also contains a styles
directory with the css needed which is used in the html
files.public
directory contains the genrated javascript that is being used in the html
files.src
directorysrc
contains the javascript
modules and utility functions needed, as well as login.js
and welcome.js
which have the initialisation of the modules.
test
directorytest
contains the javascript
unit tests for the application using jest
. (WIP)
docs
directorydocs
contains documentation for the project. (eg. User Stories, Flowchart, Short Gif that shows the UX of the app).
.babelrc
file.babelrc
contains the configuration of the javascript compilation settings
rollup.config.js
filerollup.config.js
contains the configuration of the javascript's bundling process
jest.config.js
filejest.config.js
contains the configuration of jest for testing
package.json
filepackage.json
contains information about the project (dependencies needed, author, etc.)