---
title: "Quickstart"
description: "Get your Trading Analysis Dashboard up and running in minutes"
---
## Get Started in Four Steps
Deploy your trading analysis dashboard and start tracking your portfolio performance.
### Step 1: Prerequisites
Install [Docker Desktop](https://www.docker.com/products/docker-desktop/) which includes Docker Compose. This is required for running the application containers.
1. Register for a free account at [Finnhub.io](https://finnhub.io/register)
2. Navigate to your dashboard
3. Copy your API key - you'll need this for real-time price updates
The free tier includes 60 API calls per minute and real-time US stock quotes
For secure authentication, create OAuth credentials:
1. Visit [Google Cloud Console](https://console.cloud.google.com/)
2. Create a new project
3. Enable Google+ API
4. Create OAuth 2.0 credentials
5. Copy Client ID and Client Secret
See the [SSO Setup Guide](/guides/setup/sso) for detailed instructions.
### Step 2: Configure Environment
```bash
git clone https://your-repo-url/trading-analysis-dashboard.git
cd trading-analysis-dashboard
```
```bash
cp .env.docker .env
```
Update the following values:
```env .env
# Finnhub Configuration
FINNHUB_API_KEY=your_finnhub_api_key_here
# Database Configuration
POSTGRES_PASSWORD=choose_secure_password
# Flask Configuration
FLASK_SECRET_KEY=generate_random_secret_key
# OAuth Configuration (Optional)
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
AUTHORIZED_USERS=your-email@example.com
```
Never commit the `.env` file to version control!
### Step 3: Deploy
```batch
deploy.bat
```
```bash
chmod +x deploy.sh
./deploy.sh
```
```bash
docker compose up -d
docker compose ps
```
Wait for all containers to start. This may take a minute for first-time setup.
### Step 4: Access and Configure
Navigate to `http://localhost:8080` in your browser
Click "Sign in with Google" and authorize the application
Add your brokerage account number in the profile page
Go to the Upload page and import your CSV transaction history
## Next Steps
Now that your dashboard is running, explore these features:
Add your holdings and track real-time performance
Import your trading history from your broker
Analyze monthly trading performance and P&L
Integrate with the REST API
## Common Tasks
### View Logs
```bash
# All services
docker compose logs -f
# Specific service
docker compose logs -f trading_app
```
### Restart Services
```bash
docker compose restart
```
### Update Application
```bash
docker compose pull
docker compose up -d
```
### Backup Database
```bash
docker compose exec postgres pg_dump -U trading_user mining_wood > backup.sql
```
## Troubleshooting
Check the logs for errors:
```bash
docker compose logs trading_app
```
Common issues:
- Missing environment variables
- Database connection failure
- Port 8080 already in use
- Verify OAuth credentials are correct in `.env`
- Check that your email is in `AUTHORIZED_USERS`
- Clear browser cookies and try again
- Verify `FINNHUB_API_KEY` is set correctly
- Check API quota hasn't been exceeded
- Review application logs for API errors
**Need help?** Check our [deployment guide](/guides/deployment/docker) or [setup guides](/guides/setup/cicd) for more detailed instructions.