-
Notifications
You must be signed in to change notification settings - Fork 0
/
expapp.txt
63 lines (46 loc) · 1.03 KB
/
expapp.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@echo off
title FSJD utility tool
echo.
echo ========================== UTILITY WIZARD ======================
echo.
echo How do you want to proceed?
echo [C]reate Express App [S]et PATH [E]xit
echo.
echo.
set /p option="Enter your choice: "
if %option%==C GOTO exGen
if %option%==S GOTO data
if %option%==E (
exit
)
:exGen
echo.
set /p location="Enter workspace path: "
echo.
set /p folder="Enter Project name: "
echo Application location: %location%\%folder%
cd /d %location%
mkdir %folder%
cd /d %folder%
mkdir src
cd src
mkdir model routes service utilities
type nul > app.js
cd routes
type nul > routing.js
cd ../../
start /B /W cmd.exe /c "npm init --yes && npm install --save express"
cd ../../
echo.
echo.
echo Task completed! Please check above for errors/warnings
echo.
PAUSE
goto:eof
:data
echo.
setx Path "%Path%;C:\Program Files\MongoDB\Server\4.0\bin;%USERPROFILE%\AppData\Roaming\npm;"
echo.
echo Task completed! Please check above for errors/warnings
PAUSE
goto:eof