Gathering detailed insights and metrics for generator-react-client-gamechanger
Gathering detailed insights and metrics for generator-react-client-gamechanger
Gathering detailed insights and metrics for generator-react-client-gamechanger
Gathering detailed insights and metrics for generator-react-client-gamechanger
npm install generator-react-client-gamechanger
Typescript
Module System
Node Version
NPM Version
JavaScript (62.24%)
EJS (29.59%)
HCL (5.15%)
HTML (1.98%)
CSS (1.03%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1 Stars
55 Commits
1 Watchers
4 Branches
7 Contributors
Updated on Dec 22, 2021
Latest Version
1.1.2
Package Id
generator-react-client-gamechanger@1.1.2
Unpacked Size
100.97 kB
Size
23.22 kB
File Count
55
NPM Version
8.5.0
Node Version
16.14.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Generator based on Yeoman that scaffolds the basic Redux logic in a React project based on a graphQL schema.
npm install -g yo
aws configure
command)Get the project and install its dependencies
git clone https://github.com/GameChangerCloud/generator-react-client-gamechanger
cd generator-react-client-gamechanger
npm install
Link the project to your local node_modules folder
npm link
npm install -g generator-react-client-gamechanger
Generate your React application
npx create-react-app <your-app-name>
Generate the final project with yeoman
cd <your-app-name> && yo react-client-gamechanger <path/to/graphql/schema.graphql>
npm install
Now we need to do some setup to connect our client app to the AWS cloud services.
<your-app-name>/src/constants/index.js
Fill up the file <your-app-name>/src/config/app-config.js
with the following info from your Cognito User Pool :
userPoolBase
: General settings > Pool IduserPoolBaseUri
: App integration > DomainclientId
: App integration > App client settings > IDcallbackUri
: App integration > App client settings > Callback URL(s)signoutUri
: App integration > App client settings > Sign out URL(s)Now we can run the app
npm start
See the result on http://localhost:3000
When you launch your application, you will have a toolbar on the top with :
Home : Home page (display the graphQL schema and the API Gateway)
Tables : Page which manage tables (create tables, delete tables, create fake data, delete all data, check if tables have been created and update you database)
Models : You will have all models and you can access here to manage them. With cognito, they are only available if you are connected. You can access the connexion page with the sign in button.
Before accessing to models you need to create tables. On the Tables page you have a button for create Tables. If he doesn't appear, you haven't put the endpoint. See section "Usage" -> "API Gateway".
There is the list of string your field must contain to have the right validator :
"lastname" or "firstname" -> only a-zA-Z characters allowed
"username" or "login" -> only a-zA-Z0-9 and _, -, . allowed
"mail" -> email format "myemail@example.fr"
If the field is an Int it will allow only numbers
Using S3 and CloudFront, you can deploy your app to make it available globally through an URL. We also use the react-deploy-cli module to perform the deployment.
Initialize the cloud structure
cd terraform
terraform init
terraform apply
It will create two environment staging
& production
.
The CloudFront URLs corresponding will be printed in <your-app-name>/terraform/ids
. If it doesn't, you can get them in your CloudFront console on aws website.
In your Cognito Console, update your callback and sign out urls.
Fill up the <your-app-name>/deploy.js
file with your aws credential info (AccessKey & SecretAccessKey)
For each type of environment, you need to update <your-app-name>/src/config/app-config.json
, with the callback and signout URI corresponding before running the build command.
npm run build
You need react-deploy cli
npm i -g react-deploy-cli
Then deploy according to the mode.
react-deploy deploy < staging || production >
See the results on URLs printed in <your-app-name>/terraform/ids
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 1/22 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
20 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More