Skip to content

Commit b8fe68d

Browse files
authored
Merge pull request #12 from Nec0ti/dev
Dev
2 parents 54205c9 + 6001dbf commit b8fe68d

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

installation-files/install.bat

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

installation-files/install.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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'."

0 commit comments

Comments
 (0)