File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ @ echo off
2+ echo Welcome to LibrisAPI automatic installation script!
3+
4+ echo .
5+ echo Installing required dependencies...
6+ npm install
7+
8+ echo .
9+ echo Environment variables are required for the application to work.
10+ echo Please provide the following information:
11+ set /p MONGODB_URI = " MongoDB URI: "
12+ set /p JWT_SECRET = " JWT Secret Key: "
13+
14+ echo .
15+ echo .env file is being created...
16+ echo MONGODB_URI=%MONGODB_URI% > .env
17+ echo JWT_SECRET=%JWT_SECRET% >> .env
18+
19+ echo .
20+ echo Installation is complete.
21+ echo You can now start the application by running 'npm start'.
22+
23+ pause
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ echo " Welcome to LibrisAPI automatic installation script!"
4+
5+ echo " "
6+ echo " Installing required dependencies..."
7+ npm install
8+
9+ echo " "
10+ echo " Environment variables are required for the application to work."
11+ echo " Please provide the following information:"
12+ read -p " MongoDB URI: " MONGODB_URI
13+ read -p " JWT Secret Key: " JWT_SECRET
14+
15+ echo " "
16+ echo " .env file is being created..."
17+ echo " MONGODB_URI=$MONGODB_URI " > .env
18+ echo " JWT_SECRET=$JWT_SECRET " >> .env
19+
20+ echo " "
21+ echo " Installation is complete."
22+ echo " You can now start the application by running 'npm start'."
You can’t perform that action at this time.
0 commit comments