-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
29 lines (23 loc) · 818 Bytes
/
setup.sh
File metadata and controls
29 lines (23 loc) · 818 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
#!/bin/bash
# Run this after installing Node.js and Git
echo "Installing yarn globally..."
npm install -g yarn
echo "Installing frontend dependencies..."
cd frontend && npm install && cd ..
echo "Installing backend dependencies..."
cd backend && npm install && cd ..
echo "Installing contract dependencies..."
cd contracts && npm install && cd ..
echo "Initializing Git repository..."
git init
git add .
git commit -m "initial: blockchain fullstack project scaffold"
echo ""
echo "Setup complete!"
echo ""
echo "Next steps:"
echo " 1. Copy .env.example to .env in backend/ and contracts/ and fill in your values"
echo " 2. Install MongoDB: https://www.mongodb.com/try/download/community"
echo " 3. cd frontend && npm run dev"
echo " 4. cd backend && npm run dev"
echo " 5. cd contracts && npx hardhat node"