1.8 KiB
1.8 KiB
Getting Started - Bookmark Manager
Quick Setup (5 minutes)
1. Prerequisites
- Node.js (v16+): Download here
- PostgreSQL (v12+): Download here
2. Database Setup
# Create databases
psql -U postgres
CREATE DATABASE bookmark_manager;
CREATE DATABASE bookmark_manager_test;
\q
3. Automatic Setup
# Run the setup script
./setup.sh
4. Manual Setup (if script fails)
# Install dependencies
cd backend
npm install
# Configure environment
cp .env.example .env
# Edit .env with your database credentials
# Initialize database
npm run db:init
# Start the application
npm run dev
5. Open Application
Open your browser to: http://localhost:3000
First Steps
- Register: Create a new account
- Verify Email: Check your email for verification link
- Login: Sign in with your credentials
- Add Bookmarks: Start organizing your bookmarks!
Testing the Application
cd backend
# Run all tests
npm test
# Run specific test types
npm run test:unit # Unit tests
npm run test:integration # API tests
npm run test:security # Security tests
Common Issues
Database Connection Error
- Make sure PostgreSQL is running
- Check your
.envfile credentials - Ensure databases exist
Port 3000 in Use
- Change PORT in
.envfile - Or kill the process:
lsof -i :3000thenkill -9 <PID>
Email Verification Not Working
- Configure email settings in
.env - For Gmail, use App Passwords
- Check spam folder
Need Help?
- Check the full README.md for detailed documentation
- Review logs in
backend/logs/ - Run diagnostics:
npm run db:diagnostics
You're ready to start bookmarking! 🎉