Skip to content

Commit

Permalink
Create ANDRO1click.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
AryanVBW authored Nov 5, 2023
1 parent 1b9772e commit 61c3b92
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions ANDRO1click/ANDRO1click.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

# Update package lists and upgrade packages
sudo apt update -y
sudo apt upgrade -y

# Install Node.js, npm, unzip, and openjdk-8-jre
sudo apt install nodejs -y
sudo apt install npm -y
sudo apt install unzip -y
sudo apt-get install openjdk-8-jre -y

# Install pm2 globally
npm install pm2 -g

# Download ANDRO.zip and unzip it
wget https://github.com/AryanVBW/ANDRO/releases/download/v.1.0/ANDRO.zip
unzip ANDRO.zip

# Navigate to the ANDRO directory and install its dependencies
cd ANDRO
npm install

# Start the application with pm2
pm2 start index.js

# Display a message indicating the script has finished
echo "ANDRO is now running with pm2."

0 comments on commit 61c3b92

Please sign in to comment.