81 lines
1.7 KiB
Markdown
81 lines
1.7 KiB
Markdown
# FairReview - Steam Game Review Platform
|
|
|
|
A gaming-focused website for reviewing Steam games with Steam account integration.
|
|
|
|
## Features
|
|
|
|
- **Public Access**: Browse games, read reviews
|
|
- **Website Account**: Register/login with email, upvote/downvote reviews
|
|
- **Steam Integration**: Link Steam account to post reviews with playtime & achievements displayed
|
|
|
|
## Tech Stack
|
|
|
|
- Next.js 14 (App Router)
|
|
- PostgreSQL (your existing DB at 192.168.2.175:5432)
|
|
- NextAuth.js with Credentials + Steam OpenID
|
|
- Tailwind CSS (gaming dark theme)
|
|
|
|
## Quick Deploy
|
|
|
|
### 1. Upload to Linux Server
|
|
|
|
Clone this repo to your Linux server.
|
|
|
|
### 2. Configure Database Credentials
|
|
|
|
Edit `.postgres-env`:
|
|
```bash
|
|
DB_USER=postgres
|
|
DB_PASS=your_actual_password
|
|
DB_HOST=192.168.2.175
|
|
DB_PORT=5432
|
|
DB_NAME=fairreview
|
|
```
|
|
|
|
### 3. Run Deployment
|
|
|
|
```bash
|
|
chmod +x deploy.sh
|
|
./deploy.sh 192.168.2.175:3000
|
|
```
|
|
|
|
### 4. Update Steam API Key
|
|
|
|
After deployment, edit `.env.local` and add your Steam Web API key:
|
|
```
|
|
STEAM_API_KEY=your_steam_api_key
|
|
```
|
|
|
|
Then restart:
|
|
```bash
|
|
pm2 restart fairreview
|
|
```
|
|
|
|
## Changing Domain Later
|
|
|
|
```bash
|
|
./update-domain.sh fairreview.example.com
|
|
```
|
|
|
|
## Useful Commands
|
|
|
|
```bash
|
|
pm2 status # Check app status
|
|
pm2 logs # View logs
|
|
pm2 restart fairreview # Restart app
|
|
```
|
|
|
|
## Project Structure
|
|
|
|
```
|
|
├── src/
|
|
│ ├── app/ # Next.js pages & API routes
|
|
│ ├── components/ # UI components
|
|
│ └── lib/ # Utilities (db, auth, steam)
|
|
├── prisma/
|
|
│ └── schema.prisma # Database schema
|
|
├── deploy.sh # Main deployment script
|
|
├── update-domain.sh # Domain update script
|
|
└── .postgres-env # DB credentials (you edit this)
|
|
```
|