Skip to content

Commit ec157de

Browse files
BackendExpertJehanKandyAnupa1998
committed
Update index.js
Co-Authored-By: JehanKandy <jehankandy@gmail.com> Co-Authored-By: Anupa Gamage <125038143+Anupa1998@users.noreply.github.com>
1 parent d374952 commit ec157de

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ const destinationAppTW = argv.destination || path.join(process.cwd(), 'src/');
1717
const sourcePR = argv.source || path.join(__dirname, 'PrivateRoute/PrivateRoute.jsx');
1818
const destinationPR = argv.destination || path.join(process.cwd(), 'src/components/PrivateRoute');
1919

20+
const sourceBackendMysqlNoMVC = argv.source || path.join(__dirname, 'BackEndMysqlNoMVC/server');
21+
const destinationBackendMysqlNoMVC = argv.destination || path.join(process.cwd(), 'server/');
22+
23+
2024
async function RunReactLoginSignIn() {
2125
try {
2226
await fs.copy(source, destination);
@@ -42,7 +46,12 @@ async function RunReactLoginSignInTW() {
4246
}
4347

4448
async function RunBackendMysqlNoMVC() {
45-
49+
try {
50+
await fs.copy(sourceBackendMysqlNoMVC, destinationBackendMysqlNoMVC);
51+
console.log('Backend Development Enviroment Created Successful');
52+
} catch (err) {
53+
console.error('Error copying folder:', err);
54+
}
4655
}
4756

4857
module.exports = {

0 commit comments

Comments
 (0)