Run the Node program.
This commit is contained in:
parent
947921d155
commit
0378fbf2d5
10
run.sh
Normal file → Executable file
10
run.sh
Normal file → Executable file
@ -3,10 +3,20 @@
|
||||
# Developer: Hyperling
|
||||
# Purpose: Install all dependencies and run the project.
|
||||
|
||||
# Install any system packages.
|
||||
if [[ -z `which npm` ]]; then
|
||||
echo "NPM needs to be installed."
|
||||
sudo apt install npm
|
||||
else
|
||||
echo "NPM is already installed."
|
||||
fi
|
||||
|
||||
# Install/update any project modules.
|
||||
echo "Ensuring NPM packages are correct."
|
||||
npm install package.json
|
||||
|
||||
# Start backend
|
||||
node ./server.js
|
||||
|
||||
# Start frontend.
|
||||
# ???
|
||||
|
Reference in New Issue
Block a user