-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8e5e89b
Showing
30 changed files
with
12,138 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:react/jsx-runtime" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@typescript-eslint", "react", "react-refresh"], | ||
"rules": { | ||
"indent": ["error", 2], | ||
"linebreak-style": ["error", "unix"], | ||
"quotes": ["error", "double"], | ||
"semi": ["error", "always"], | ||
"react-refresh/only-export-components": [ | ||
"warn", | ||
{ "allowConstantExport": true } | ||
] | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# name: Deploy | ||
|
||
# on: | ||
# push: | ||
# branches: | ||
# - main | ||
|
||
# jobs: | ||
# Deploy: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: 18 | ||
# - name: Install | ||
# run: npm ci | ||
# - name: Build Api | ||
# run: npm run build -w packages/api | ||
# - name: Deploy Api | ||
# uses: serverless/[email protected] | ||
# with: | ||
# args: deploy --stage develop -c serverless-api.yml | ||
# env: | ||
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
# - name: Build UI | ||
# run: npm run build -w packages/ui | ||
# - name: Deploy UI | ||
# uses: serverless/[email protected] | ||
# with: | ||
# args: deploy --stage develop -c serverless-ui.yml | ||
# env: | ||
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode | ||
!.vscode/extensions.json | ||
!.vscode/settings.json | ||
|
||
.env* | ||
!.env.sample | ||
|
||
# Hardhat files | ||
/cache | ||
/artifacts | ||
|
||
# TypeChain files | ||
/typechain | ||
/typechain-types | ||
|
||
# solidity-coverage files | ||
/coverage | ||
/coverage.json | ||
|
||
.serverless |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# React Monorepo Template | ||
|
||
## Create user for deployment (AWS) | ||
|
||
1. Go to IAM service | ||
2. Click Users --> `Create User` | ||
|
||
 | ||
|
||
3. Fill the user name and click on `Next` | ||
4. Click `Attach policies directly`, click on `AdministratorAccess` and click on `Next` | ||
5. Click on `Create user` | ||
6. View the created user. | ||
7. Click on the tab `Security credentials` and click on `Create access key` | ||
8. Click on the option `Command Line Interface (CLI)` and click on `Next` | ||
9. Click on the button `Create access key` | ||
10. Copy the keys `Access key` and `Secret access key` | ||
|
||
## Configure serverless locally (OPTIONAL) | ||
|
||
Execute the following command in your terminal: | ||
|
||
```shell | ||
npx serverless config credentials --provider aws --key <your aws access key> --secret <your aws secret access key> | ||
``` |
Oops, something went wrong.