Getting Started
Welcome to My Dashboard! This guide will help you set up your development environment and get started with the project.
🚀 Quick Setup
Prerequisites
- Node.js >= 18.0.0
- npm (comes with Node.js)
- Git for version control
Installation
-
Clone the repository
git clone https://github.com/jayc13/my-dashboard.git
cd my-dashboard -
Install dependencies
# Install server dependencies
cd server
npm install
# Install client dependencies
cd ../client
npm install
# Install documentation dependencies
cd ../docs
npm install -
Set up environment variables
Server (.env)
cd server
cp .env.example .env
# Edit .env with your configurationClient (.env.local)
cd client
cp .env.example .env.local
# Edit .env.local with your configuration -
Start the development servers
# Terminal 1: Start the server
cd server
npm run dev
# Terminal 2: Start the client
cd client
npm run dev
# Terminal 3: Start the documentation (optional)
cd docs
npm start
🎯 What's Next?
- Development Overview - Learn about the development workflow
- API Overview - Understand the API structure
- Architecture Overview - Explore the system architecture
🔧 Development Tools
Recommended IDE Setup
- VS Code with the following extensions:
- TypeScript and JavaScript Language Features
- ESLint
- Prettier
- GitLens
Available Scripts
Server:
pnpm run dev --filter=server
- Start development server with hot reloadpnpm run build --filter=server
- Build for productionpnpm test --filter=server
- Run testspnpm run lint --filter=server
- Run ESLint
Client:
pnpm run dev --filter=client
- Start development serverpnpm run build --filter=client
- Build for productionpnpm run preview --filter=client
- Preview production buildpnpm test --filter=client
- Run testspnpm run lint --filter=client
- Run ESLint
Documentation:
pnpm start --filter=docs
- Start development serverpnpm run build --filter=docs
- Build for productionpnpm run serve --filter=docs
- Serve production build
🐛 Troubleshooting
Common Issues
Port already in use:
# Kill process using port 3000
lsof -ti:3000 | xargs kill -9
Node modules issues:
# Clear and reinstall dependencies
rm -rf node_modules package-lock.json
npm install
Build failures:
- Check Node.js version:
node --version
- Ensure all environment variables are set
- Check for TypeScript errors:
npm run type-check
📚 Additional Resources
Need help? Check the Development Overview for more detailed information.