Skip to content

Commit b7802f7

Browse files
authored
Merge pull request #107 from openSVM/copilot/fix-106
Fix critical CSS loading failures, analytics theme consistency, blueprint visual enhancements, and theme selector functionality with comprehensive responsive design overhaul
2 parents ff1cbf4 + d7c35d9 commit b7802f7

File tree

78 files changed

+11788
-3052
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+11788
-3052
lines changed

β€Ž.devcontainer/README.mdβ€Ž

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Development Container for OpenSVM P2P Exchange
2+
3+
This directory contains the development container configuration for the OpenSVM P2P Exchange project, providing a fully configured environment with all necessary tools preinstalled.
4+
5+
## What's Included
6+
7+
The development container automatically installs and configures:
8+
9+
- **Rust toolchain** with latest stable version
10+
- **Node.js 18** with npm and build tools
11+
- **Anchor 0.31.1** via Anchor Version Manager (AVM)
12+
- **System dependencies** for Solana development (libudev-dev, libssl-dev, etc.)
13+
- **VS Code extensions** for Rust, TypeScript, and Tailwind CSS development
14+
- **Project dependencies** via `npm install --legacy-peer-deps`
15+
16+
## Usage
17+
18+
### With GitHub Codespaces
19+
1. Navigate to the repository on GitHub
20+
2. Click "Code" β†’ "Create codespace on main"
21+
3. Wait ~3-5 minutes for automatic setup to complete
22+
4. Start developing immediately with `npm run dev`
23+
24+
### With VS Code
25+
1. Install the "Dev Containers" extension
26+
2. Open the project in VS Code
27+
3. Command palette: "Dev Containers: Reopen in Container"
28+
4. Wait for setup to complete
29+
5. Start developing with `npm run dev`
30+
31+
### With GitHub Copilot
32+
The development container is automatically detected and used by GitHub Copilot coding agents, providing immediate access to a fully configured environment.
33+
34+
## Configuration Files
35+
36+
- `devcontainer.json`: Main configuration with base image, features, and VS Code settings
37+
- `setup.sh`: Post-creation script that installs project-specific tools and dependencies
38+
39+
## Ports
40+
41+
The container forwards these ports for development:
42+
- `3000`: Next.js development server
43+
- `8899`: Solana local validator (if used)
44+
45+
## Troubleshooting
46+
47+
If setup fails:
48+
1. Check the terminal output during container creation
49+
2. Manually run `.devcontainer/setup.sh` to see detailed error messages
50+
3. Ensure Docker/Podman is running and has sufficient resources (4GB+ RAM recommended)
51+
52+
## Manual Setup Alternative
53+
54+
If you cannot use the development container, refer to the manual setup instructions in `.github/copilot-instructions.md`.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "OpenSVM P2P Exchange",
3+
"image": "mcr.microsoft.com/devcontainers/rust:1-bullseye",
4+
"features": {
5+
"ghcr.io/devcontainers/features/node:1": {
6+
"version": "18",
7+
"nodeGypDependencies": true
8+
},
9+
"ghcr.io/devcontainers/features/common-utils:2": {
10+
"installZsh": true,
11+
"installOhMyZsh": true,
12+
"upgradePackages": true
13+
}
14+
},
15+
"postCreateCommand": "bash .devcontainer/setup.sh",
16+
"customizations": {
17+
"vscode": {
18+
"extensions": [
19+
"rust-lang.rust-analyzer",
20+
"ms-vscode.vscode-typescript-next",
21+
"bradlc.vscode-tailwindcss",
22+
"esbenp.prettier-vscode",
23+
"ms-vscode.vscode-eslint",
24+
"GitHub.copilot"
25+
]
26+
}
27+
},
28+
"forwardPorts": [3000, 8899],
29+
"remoteUser": "vscode"
30+
}

β€Ž.devcontainer/setup.shβ€Ž

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo "πŸš€ Setting up OpenSVM P2P Exchange development environment..."
5+
6+
# Install system dependencies required for Solana/Anchor development
7+
echo "πŸ“¦ Installing system dependencies..."
8+
sudo apt-get update && sudo apt-get install -y \
9+
libudev-dev \
10+
libssl-dev \
11+
pkg-config \
12+
build-essential \
13+
curl \
14+
wget \
15+
git
16+
17+
# Install Solana CLI tools
18+
echo "πŸ”§ Installing Solana CLI..."
19+
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
20+
echo 'export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"' >> ~/.bashrc
21+
export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
22+
23+
# Install Anchor Version Manager
24+
echo "βš“ Installing Anchor Version Manager..."
25+
cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
26+
27+
# Add AVM to PATH
28+
echo 'export PATH="$HOME/.avm/bin:$PATH"' >> ~/.bashrc
29+
export PATH="$HOME/.avm/bin:$HOME/.local/share/solana/install/active_release/bin:$PATH"
30+
31+
# Install and use Anchor 0.31.1
32+
echo "πŸ“¦ Installing Anchor 0.31.1..."
33+
avm install 0.31.1
34+
avm use 0.31.1
35+
36+
# Verify tool installations
37+
echo "βœ… Verifying installations..."
38+
solana --version
39+
anchor --version
40+
41+
# Install Node.js dependencies with legacy peer deps flag
42+
echo "πŸ“¦ Installing Node.js dependencies..."
43+
npm install --legacy-peer-deps
44+
45+
# Verify Node.js setup
46+
echo "βœ… Verifying Node.js setup..."
47+
node --version
48+
npm --version
49+
50+
# Build the project to verify everything is working
51+
echo "πŸ”¨ Building project to verify setup..."
52+
npm run build
53+
54+
# Test Solana program build
55+
echo "πŸ”¨ Testing Solana program build..."
56+
anchor build
57+
58+
echo ""
59+
echo "βœ… Development environment setup complete!"
60+
echo "πŸ“ You can now use:"
61+
echo " npm run dev - Start development server"
62+
echo " npm run build - Build for production"
63+
echo " npm test - Run tests"
64+
echo " anchor build - Build Solana programs"
65+
echo " solana --version - Check Solana CLI version"
66+
echo ""

0 commit comments

Comments
Β (0)