diff --git a/QUICKSTART_TOMORROW.md b/QUICKSTART_TOMORROW.md new file mode 100644 index 0000000..eee0428 --- /dev/null +++ b/QUICKSTART_TOMORROW.md @@ -0,0 +1,64 @@ +# Grimlock - Tomorrow's Quick Start + +## Pull Latest Code + +```bash +cd ~/grimlock +git pull +``` + +## Start Backend + +```bash +cd ~/grimlock/backend + +export PATH="$HOME/.local/bin:$PATH" +export ANTHROPIC_API_KEY="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" +export DATABASE_URL="postgresql://grimlock:grimlock@localhost:5432/grimlock" +export SECRET_KEY="09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7" +export REDIS_URL="redis://localhost:6379" +export CONTEXT_PATH="$HOME/grimlock/backend/context" + +python3 -m uvicorn main:app --host 0.0.0.0 --port 8000 +``` + +## Start Frontend (New Terminal) + +```bash +cd ~/grimlock/frontend +npm run dev +``` + +## Test It + +1. Go to http://10.253.0.4:3000 +2. Register/Login +3. Create channel via curl: + +```bash +# Get token +TOKEN=$(curl -s -X POST http://10.253.0.4:8000/api/auth/login \ + -H "Content-Type: application/json" \ + -d '{"email":"YOUR_EMAIL","password":"YOUR_PASSWORD"}' | grep -o '"access_token":"[^"]*' | cut -d'"' -f4) + +# Create channel +curl -L -X POST http://10.253.0.4:8000/api/channels/ \ + -H "Content-Type: application/json" \ + -H "Authorization: Bearer $TOKEN" \ + -d '{"name":"general","description":"Team chat","type":"public"}' + +# Join channel +curl -X POST http://10.253.0.4:8000/api/channels/1/join \ + -H "Authorization: Bearer $TOKEN" +``` + +4. Refresh browser - you should see the channel +5. Send a message +6. Try @grimlock + +## Main Issues to Fix + +1. **WebSocket 403** - Frontend not sending auth token correctly to Socket.IO +2. **Channel Creation UI** - Add button in sidebar to create channels from browser + +See DEPLOYMENT_STATUS.md for complete details!