This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://medium.com/@nrlhq/setting-up-pwa-lighthouse-audit-with-create-react-app-40e17180ea6b | |
// npm i react-app-rewired customize-cra workbox-webpack-plugin workbox-precaching | |
// this will generate a workbox.js file in /build | |
//no need for precache-manifest.12345blabla.js | |
const { override, addWebpackPlugin } = require('customize-cra'); | |
const { InjectManifest } = require('workbox-webpack-plugin'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
That's for customizing ant design | |
https://ant.design/docs/react/use-with-create-react-app | |
npm i react-app-rewired customize-cra babel-plugin-import less less-loader | |
package.json: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { graphql, compose, withApollo } from 'react-apollo' | |
import openNotification from '../components/NotificationComponent' | |
import gql from 'graphql-tag'; | |
const mutations = { | |
verifyToken: gql` | |
mutation VerifyToken($token: String!) { | |
verifyToken(token: $token) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#settings.py ------------------------------------------------------------------------------------- | |
#https://www.digitalocean.com/community/tutorials/how-to-use-google-s-smtp-server | |
EMAIL_USE_TLS = True | |
EMAIL_HOST = 'smtp.gmail.com'# ? | |
EMAIL_HOST_USER = '[email protected]' | |
EMAIL_HOST_PASSWORD = 'Yourpassword12345' | |
EMAIL_PORT = 587 #? | |
SITE_NAME = "The Name of your app" |