This guide will help you set up the Crypto Trading Bot Dashboard on Ubuntu.
# Method 1: Using NodeSource repository (Recommended)
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
# Method 2: Using Ubuntu package manager
sudo apt update
sudo apt install nodejs npm
# Method 3: Using snap
sudo snap install node --classicVerify installation:
node --version # Should be v16+
npm --version # Should be v8+sudo apt update
sudo apt install gitgit clone <your-repository-url>
cd crypto-trading-bot-dashboardcd dashboardnpm installThis will install all required packages:
- React and TypeScript
- Tailwind CSS for styling
- Recharts for data visualization
- Lucide React for icons
- And other dependencies
# Copy example environment file
cp .env.example .env
# Edit configuration if needed
nano .envnpm startThe application will:
- Start on
http://localhost:3000 - Automatically open in your default browser
- Enable hot reloading for development
# Use a different port
npm start -- --port 3001# Fix npm permissions
sudo chown -R $USER:$USER ~/.npm
sudo chown -R $USER:$USER ~/.config# Check Node version
node --version
# If version is too old, update Node.js
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs# Clear npm cache
npm cache clean --force
# Remove node_modules and reinstall
rm -rf node_modules package-lock.json
npm install# Increase Node.js memory limit
export NODE_OPTIONS="--max-old-space-size=4096"
npm start- OS: Ubuntu 18.04+ (or other Linux distributions)
- Node.js: v16.0.0 or higher
- npm: v8.0.0 or higher
- RAM: 2GB minimum, 4GB recommended
- Storage: 500MB for dependencies
Install useful development tools:
# VS Code
sudo snap install code --classic
# Chrome/Chromium for debugging
sudo apt install chromium-browser
# Git GUI (optional)
sudo apt install gitgTo create a production build:
npm run buildThis creates an optimized build in the build/ directory.
- Customize Configuration: Edit
src/config.tsfor your needs - Connect Backend: Update API endpoints in environment variables
- Add Features: Extend components in
src/components/andsrc/pages/ - Deploy: Use the production build for deployment
- Check the main README.md for feature documentation
- Review component code in
src/directory - Create issues on GitHub for bugs or questions
- Check browser console for error messages
Happy coding! 🚀