Features | Nest.js Package | Made by | ASP.NET Package | Made by |
---|---|---|---|---|
Caching | cache-manager | Community | Microsoft.Extensions.Caching.Memory | Microsoft |
Database access | @nestjs/typeorm | Nest.js | Microsoft.AspNetCore.Identity.EntityFrameworkCore | Microsoft |
Authentication | @nestjs/passport | Nest.js | Microsoft.AspNetCore.Authentication | Microsoft |
Task scheduling | @nestjs/schedule | Nest.js | Cronos | Community |
Queues | @nestjs/bull | Nest.js | System.Messaging | Microsoft |
Swagger | @nestjs/swagger | Nest.js | Swashbuckle.AspNetCore.Swagger | Community |
WebSockets | @nestjs/websockets | Nest.js | Microsoft.AspNetCore.WebSockets | Microsoft |
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
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Monorepo Code | |
uses: actions/checkout@v2 | |
- name: Yarn Bootstrap | |
uses: borales/actions-yarn@v3.0.0 | |
with: | |
cmd: bootstrap:ci # will run `yarn bootstrap:ci` command |
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
FROM debian:bullseye as base | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
WORKDIR /workspace | |
RUN mkdir -pv "/workspace/bin" && echo 'echo test' > '/workspace/bin/test.sh' && chmod +x '/workspace/bin/test.sh' | |
ENV PATH="/workspace/bin:${PATH}" | |
FROM base as builder |
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
name: CI/CD Deploy Netlify Webapp Dev | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: |
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
{ | |
"name": "root", | |
"private": true, | |
"scripts": { | |
"lerna": "lerna", | |
"bootstrap:ci": "yarn --ignore-scripts --silent && lerna bootstrap -- --ignore-scripts && yarn build:ci", | |
"build:ci": "lerna run build" | |
}, | |
"devDependencies": { | |
"lerna": "^5.1.4", |
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
const EscrowContract = await hre.ethers.getContractFactory("Escrow"); | |
const escrowContract = await EscrowContract.deploy(DAITokenAddress) | |
await escrowContract.deployed(); | |
console.log('Contracts deployed!'); | |
if (networkName == 'localhost') { | |
console.log('Deployed ERC20 contract address', erc20.address) | |
} | |
console.log('Deployed Escrow Contract address', escrowContract.address); |
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
let DAITokenAddress = process.env[`${networkName.toUpperCase()}_NETWORK_DAI_TOKEN_ADDRESS`]; | |
// If deploying to localhost, (for dev/testing purposes) need to deploy own ERC20 | |
if (networkName == 'localhost') { | |
const ERC20Contract = await hre.ethers.getContractFactory("MockDaiToken"); | |
erc20 = await ERC20Contract.deploy(); | |
await erc20.deployed() | |
DAITokenAddress = erc20.address | |
} |
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
const networkName = hre.network.name; | |
const networkUrl = hre.network.config.url; | |
console.log('Deploying to network', networkName, networkUrl); |
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
const hre = require('hardhat'); | |
require('dotenv').config(); | |
async function main() { | |
// Insert your deployment script here | |
} | |
// We recommend this pattern to be able to use | |
// async/await everywhere and properly handle errors. | |
main() | |
.then(() => process.exit(0)) | |
.catch((error) => { |
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
require("@nomiclabs/hardhat-ethers"); | |
require('dotenv').config(); | |
/** | |
* @type import('hardhat/config').HardhatUserConfig | |
*/ | |
module.exports = { | |
solidity: "0.8.4", | |
networks: { | |
rinkeby: { | |
url: process.env.RINKEBY_RPC_URL, |