Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. Feeling brave and want to build from source? Here's how to get started
  2.  
  3. ### Requirements
  4. * Node 6+
  5.  
  6.  
  7. ### Google Setup
  8. Firstly you need to get an OAuth client ID and secret from Google.
  9. Visit https://console.developers.google.com to get started.
  10. You'll need to [setup your OAuth Client ID](https://console.developers.google.com/apis/credentials) and enable the [Gmail](https://console.developers.google.com/apis/api/gmail/overview), [Google+](https://console.developers.google.com/apis/api/plus/overview) and [Identity Toolkit](https://console.developers.google.com/apis/api/identitytoolkit/overview) APIs.
  11.  
  12. To create OAuth client ID & secret, under "API Manager", choose "Create Credentials", then "OAuth client ID".
  13. For "Application type", select "Other", and choose some name for the application, as described in these screenshots:
  14.  
  15. ![Create credentials](https://raw.githubusercontent.com/Thomas101/wmail/master/.github/gdc-create-credentials.png "Create Credentials")
  16. <br />
  17. <br />
  18. ![Create OAuth client ID](https://raw.githubusercontent.com/Thomas101/wmail/master/.github/gdc-oauth-client-id-creation.png "Create OAuth Client ID")
  19.  
  20. Next create `src/shared/credentials.js` with your Google client ID and secret like so...
  21.  
  22. ```js
  23. module.exports = Object.freeze({
  24. GOOGLE_CLIENT_ID : '<Your google client id>',
  25. GOOGLE_CLIENT_SECRET: '<Your google client secret>'
  26. })
  27. ```
  28.  
  29. ### Building
  30. Then run the following...
  31.  
  32. ```
  33. npm install webpack -g
  34. npm run-script install-all
  35. npm start
  36. ```
  37.  
  38. ### Packaging Builds
  39.  
  40. To package builds. (Note packaging osx builds can only be done from osx)
  41. ```
  42. npm install
  43. npm rebuild
  44. npm run-script package
  45. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement