-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
Β·40 lines (34 loc) Β· 1016 Bytes
/
start.sh
File metadata and controls
executable file
Β·40 lines (34 loc) Β· 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# Start script for PDF Calendar Generator
# This script starts the Node.js server
echo "π
PDF Calendar Generator"
echo "ββββββββββββββββββββββββββββββββββββββββ"
echo ""
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "β Error: Node.js is not installed."
echo ""
echo "Please install Node.js from: https://nodejs.org/"
echo "Or use: brew install node (on macOS)"
echo ""
exit 1
fi
# Check if Typst is installed
if ! command -v typst &> /dev/null; then
echo "β Error: Typst is not installed."
echo ""
echo "Please install Typst from: https://github.com/typst/typst"
echo "Or use: brew install typst (on macOS)"
echo ""
exit 1
fi
# Check if node_modules exists
if [ ! -d "node_modules" ]; then
echo "π¦ Installing dependencies..."
npm install
echo ""
fi
# Start the server
echo "π Starting server..."
echo ""
npm start