Skip to content

Instantly share code, notes, and snippets.

View kongpingfan's full-sized avatar
:octocat:
Go!

kongpingfan

:octocat:
Go!
View GitHub Profile
/**
* 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'];
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';
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';