forked from PL-Dev-Guild/pldg-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathterminal
96 lines (68 loc) · 2.55 KB
/
terminal
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
npm install @anthropic-ai/sdk @octokit/rest graphql-request recharts lodash papaparse lucide-react clsx tailwind-merge next@latest react@latest react-dom@latest
npm install -D @types/lodash @types/papaparse @types/react @types/react-dom @types/node @shadcn/ui
npm run dev
# Create a new directory for your project
mkdir pldg-dashboard
cd pldg-dashboard
# Initialize a new Next.js project with TypeScript and Tailwind
npx create-next-app@latest . --typescript --tailwind --eslint
# Answer yes to all prompts
# Install shadcn-ui CLI
npm install -D @shadcn/ui
# Initialize shadcn-ui
npx shadcn-ui@latest init
# Select these options when prompted:
# - Style: Default
# - Base color: Slate
# - CSS file location: src/app/globals.css
# - Use CSS variables: Yes
# - Tailwind config: tailwind.config.js
# - Components path: @/components
# - Utils path: @/lib/utils
# Install the card component
npx shadcn-ui@latest add card
# Create necessary directories
mkdir -p src/components/dashboard src/components/ui src/lib src/types public/data
# Copy your CSV file to the data directory
cp "PLDG Ops Weekly Survey (1).csv" public/data/engagement-data.csv
# Fix npm cache ownership
sudo chown -R $(whoami) "/Users/jarrodbarnes/.npm"
# Clear npm cache
npm cache clean --force
# Install graphql-request and other missing dependencies
npm install graphql-request @octokit/rest @anthropic-ai/sdk
# Install dev dependencies
npm install -D @types/react @types/react-dom @types/node
# Verify installation
npm ls graphql-request @octokit/rest @anthropic-ai/sdk
# Remove node_modules and package-lock.json
rm -rf node_modules package-lock.json
# Clear npm cache
npm cache clean --force
# Install dependencies
npm install
# Install next types
npm install -D @types/next
# Rebuild TypeScript
npm run build
# Remove existing modules and cache
rm -rf node_modules .next package-lock.json
rm -rf ~/.npm/_cacache
# Clear npm cache
npm cache clean --force
# Install dependencies
npm install
# Create fresh Next.js environment
npx create-next-app@latest . --typescript --tailwind --eslint --no-git --no-src-dir --no-app --import-alias "@/*"
# Install additional dependencies
npm install @anthropic-ai/sdk @octokit/rest graphql-request recharts lodash papaparse lucide-react clsx tailwind-merge
# Install dev dependencies
npm install -D @types/lodash @types/papaparse @types/react @types/react-dom @types/node
# Build the project
npm run build
# Remove existing modules and lock files
rm -rf node_modules package-lock.json .next
# Install latest dependencies
npm install
# Clear Next.js cache and rebuild
npm run build