Welcome to GamePortal project. We use React for development of this project. If you wish to contribute please read the following rules of engagement.
- Install latest version of node.
- Clone the repository and run
npm install
. - Run
npm start
to run the dev server at port 3000. - Documentation for this project can be found here.
- Deploy the app by using following command. Make sure to always deploy app from master branch.
npm run deploy
- Due to an unsolved issue with service worker, append following code on top of service-worker.js file in gh-pages branch after deployment.
service-worker.js
file is in root directory of gh-pages branch.
importScripts('https://www.gstatic.com/firebasejs/3.9.0/firebase-app.js');
importScripts('https://www.gstatic.com/firebasejs/3.9.0/firebase-messaging.js');
firebase.initializeApp({
'messagingSenderId': '144595629077'
});
self.addEventListener('push', function(event) {
});
firebase.messaging().setBackgroundMessageHandler(function(payload) {
});
- The app can be viewed here. You may need to hard reload the app using cmd+shift+R.
- Use dev branch for development and gh-pages branch to host the app.
- Use master branch to deploy code. Master branch should always contain working code with no bugs.
- The pull request to master branch should always be peer reviewed.