Reaperxxxx commited on
Commit
ae5e35f
·
verified ·
1 Parent(s): f599cf1

Create start.sh

Browse files
Files changed (1) hide show
  1. start.sh +18 -0
start.sh ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ if [ -z "$GITHUB_TOKEN" ]; then
5
+ echo "Error: GITHUB_TOKEN is not set"
6
+ exit 1
7
+ fi
8
+
9
+ echo "Cloning repo..."
10
+ git clone https://$GITHUB_TOKEN@github.com/reaperofssa/ChatNest.git /app
11
+
12
+ cd /app
13
+
14
+ echo "Installing dependencies..."
15
+ npm install cors express mongoose bcrypt axios socket.io body-parser form-data
16
+
17
+ echo "Starting server..."
18
+ node server.js