-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·36 lines (27 loc) · 944 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·36 lines (27 loc) · 944 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
#!/bin/bash
# Upgrade pip
pip install --upgrade pip
pip install --upgrade boto3
# Install nvm if it is not already installed
if ! command -v nvm &> /dev/null; then
echo "nvm not found, installing..."
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
# Load nvm into the current shell session
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
fi
# Load nvm into the current shell session
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
# Install Node.js version 18 using nvm
nvm install 18
nvm use 18
# Install and update AWS CDK globally
npm install -g aws-cdk@latest
npm update -g aws-cdk
# Install Node.js project dependencies
npm install
# Install Python dependencies
pip install -r requirements.txt