create-web3-dapp-dev
Version:
<p align="center"> <br /> <a href="https://createweb3dapp.alchemy.com"> <img src=".github/images/cw3d-logo.png" width="200" alt=""/></a> <br /> </p>
27 lines (22 loc) • 562 B
text/typescript
import chalk from "chalk";
import { DappInfo } from "../../interfaces/DappInfo";
import context from "./context.js";
export const logInstructions = (dappInfo: DappInfo) => {
let step = 1;
if (dappInfo.useBackend) {
console.log(
`${step}. Add your private key in the .env file inside the backend folder`
);
step++;
}
console.log(
`${step}. To start the application, run: ${chalk.green(
`cd ${
dappInfo.useBackend
? `${context.projectName}/frontend`
: `${context.projectName}`
} && npm run dev`
)}`
);
process.exit(0)
};