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 './App.css'; | |
import PropTypes from 'prop-types'; | |
import { BrowserRouter as Router, Route, NavLink, Link } from 'react-router-dom'; | |
import { Divider, Form, Icon, Input, Modal, Button, Card, Menu, Dropdown, | |
Container, Header, Segment, Placeholder } from 'semantic-ui-react'; | |
import Amplify, { Auth } from 'aws-amplify'; | |
import API, { graphqlOperation } from '@aws-amplify/api'; |
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 './App.css'; | |
import PropTypes from 'prop-types'; | |
import { BrowserRouter as Router, Route, NavLink, Link } from 'react-router-dom'; | |
import { Divider, Form, Icon, Input, Modal, Button, Card, Menu, Dropdown, | |
Container, Header, Segment, Placeholder } from 'semantic-ui-react'; | |
import Amplify, { Auth } from 'aws-amplify'; | |
import Analytics from '@aws-amplify/analytics'; |
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
/** | |
* 1. Generate users in a format ready for Cognito import. | |
*/ | |
const args = require('minimist')(process.argv.slice(2)) | |
const fs = require('fs'); | |
const faker = require('faker'); | |
const USER_COUNT = args['number'] || 30; | |
const BASE_EMAIL = args['baseEmail']; |