1.4 KiB
1.4 KiB
Quick Start Guide
Prerequisites Check
- Node.js 18+ installed
- PostgreSQL installed and running
- AWS account with S3 bucket created
- AWS IAM user with S3 permissions
5-Minute Setup
1. Backend Setup (2 minutes)
cd backend
npm install
cp .env.example .env
# Edit .env with your database and AWS credentials
createdb blog_editor # or use psql to create database
npm run migrate
npm run dev
2. Frontend Setup (2 minutes)
cd frontend
npm install
cp .env.example .env
# Edit .env: VITE_API_URL=http://localhost:5001
npm run dev
3. Test the Application (1 minute)
- Open http://localhost:4000
- Register a new account
- Create a new post
- Add some content with formatting
- Upload an image
- Publish the post
Common Issues
Database Connection Error
- Check PostgreSQL is running:
pg_isready - Verify credentials in
.env - Ensure database exists:
psql -l | grep blog_editor
S3 Upload Fails
- Verify AWS credentials in
.env - Check S3 bucket name is correct
- Ensure bucket CORS is configured
- Verify IAM user has PutObject permission
CORS Error
- Check
CORS_ORIGINin backend.envmatches frontend URL - Default:
http://localhost:4000
Next Steps
- Customize the editor styling
- Add more TipTap extensions
- Configure production environment variables
- Set up CI/CD pipeline
- Deploy to AWS