Skip to content

Commit 9654e0c

Browse files
committed
docs: update README
1 parent c9c5b79 commit 9654e0c

File tree

1 file changed

+53
-53
lines changed

1 file changed

+53
-53
lines changed

README.md

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# YieldMax
22

3-
YieldMax is a platform that helps you compare and analyze different yield opportunities in the DeFi ecosystem.
4-
We aggregate data from various protocols to provide you with transparent information to make informed decisions.
3+
Compare and optimize DeFi yield opportunities with transparent protocol analysis and risk assessment.
54

6-
## Tech Stack
5+
[![Deploy to Production](https://github.com/yourusername/yieldmax/actions/workflows/deploy.yml/badge.svg)](https://github.com/yourusername/yieldmax/actions/workflows/deploy.yml)
76

8-
- **Next.js** - React framework with SSR and static site generation capabilities
9-
- **TypeScript** - For type safety and better developer experience
10-
- **Bun** - JavaScript runtime and package manager
7+
## Features
118

12-
## Getting Started
9+
- **Protocol Comparison** - Compare yields across multiple protocols
10+
- **Risk Assessment** - Understand the risks associated with each protocol
11+
- **Yield Simulation** - Project potential earnings based on investment amount and time
12+
- **Beginner Guides** - Learn about DeFi yield strategies
1313

14-
Make sure you have [Bun](https://bun.sh) installed on your machine.
14+
## Quick Start
1515

1616
```bash
1717
# Install dependencies
@@ -23,68 +23,68 @@ bun run dev
2323
# Build for production
2424
bun run build
2525

26-
# Start production server
27-
bun run start
26+
# Run tests
27+
bun run test
2828
```
2929

30-
## Static Site Generation
30+
## Tech Stack
3131

32-
Next.js generates static HTML files for all pages during the build process, which enables faster loading times and SEO benefits. The output is saved to the `/out` directory.
32+
- **Next.js** - React framework with SSR and static site generation
33+
- **TypeScript** - Type-safe JavaScript
34+
- **Bun** - Fast JavaScript runtime and package manager
35+
- **React Query** - Data fetching and state management
36+
- **CSS Modules** - Scoped styling
3337

34-
## Deployment
38+
## Development
3539

36-
This repository is configured with GitHub Actions for automatic deployment to the production server. We use Bun for all build and deployment processes.
40+
### Testing
3741

38-
### Setting up SSH Deployment
42+
We use Bun's built-in test runner with React Testing Library:
3943

40-
1. Generate an SSH key pair if you don't already have one:
41-
```bash
42-
ssh-keygen -t rsa -b 4096 -C "your_email@example.com" -f ~/.ssh/yieldmax_deploy
43-
```
44+
```bash
45+
# Run all tests
46+
bun test
4447

45-
2. Add the public key to the authorized_keys file on the server:
46-
```bash
47-
ssh-copy-id -i ~/.ssh/yieldmax_deploy.pub yannvr@69.62.124.138
48-
```
49-
Or manually add the content of `yieldmax_deploy.pub` to `~/.ssh/authorized_keys` on the server.
48+
# Run tests in watch mode
49+
bun test --watch
50+
```
5051

51-
3. Add the private key as a GitHub secret:
52-
- Go to your GitHub repository
53-
- Navigate to Settings > Secrets and variables > Actions
54-
- Click "New repository secret"
55-
- Name: `SSH_PRIVATE_KEY`
56-
- Value: Copy the entire contents of your private key file (~/.ssh/yieldmax_deploy)
57-
- Click "Add secret"
52+
### Linting
5853

59-
4. The GitHub workflow will now be able to deploy directly to the server whenever code is pushed to the main branch.
54+
```bash
55+
# Lint codebase
56+
bun run lint
6057

61-
### Manual Deployment
58+
# Verify CSS styles
59+
bun run verify-styles
60+
```
6261

63-
You can also trigger a deployment manually:
64-
1. Go to the "Actions" tab in your GitHub repository
65-
2. Select the "Deploy to Production" workflow
66-
3. Click "Run workflow"
67-
4. Select the branch you want to deploy
68-
5. Click "Run workflow"
62+
## Deployment
6963

70-
### Server Requirements
64+
Deployment is automated via GitHub Actions. When code is pushed to the main branch, it's automatically:
7165

72-
Make sure your server has the following:
73-
1. Bun installed: `curl -fsSL https://bun.sh/install | bash`
74-
2. PM2 for process management: `bun install -g pm2`
66+
1. Tested
67+
2. Linted
68+
3. Built
69+
4. Deployed to the production server
7570

7671
## Project Structure
7772

7873
- `/app` - Next.js app directory (Pages and layouts)
79-
- `/src` - Source code
80-
- `/api` - API functions for data fetching
81-
- `/components` - React components
82-
- `/data` - Data files and types
83-
- `/out` - Static build output (generated after build)
74+
- `/src` - Core source code
75+
- `/api` - API functions and services
76+
- `/components` - Reusable UI components
77+
- `/hooks` - Custom React hooks
78+
- `/types` - TypeScript type definitions
79+
- `/__tests__` - Test files
8480

85-
## Features
81+
## Contributing
82+
83+
1. Create a feature branch (`git checkout -b feature/amazing-feature`)
84+
2. Commit your changes (`git commit -m 'Add some amazing feature'`)
85+
3. Push to the branch (`git push origin feature/amazing-feature`)
86+
4. Open a Pull Request
87+
88+
## License
8689

87-
- Protocol comparison
88-
- Yield simulation
89-
- Risk assessment
90-
- Protocol details
90+
This project is licensed under the MIT License - see the LICENSE file for details.

0 commit comments

Comments
 (0)