Get up and running with ListSorter using AppWrite in 5 minutes.
- Docker installed (for local AppWrite)
- Node.js and npm installed
# Pull and run AppWrite
docker run -d \
--name appwrite \
-p 80:80 \
-p 443:443 \
-e _APP_OPENSSL_KEY_V1=your-secret-key \
appwrite/appwrite:latest
# Wait for AppWrite to start (about 30 seconds)
# Then open http://localhost-
Open http://localhost and create admin account
-
Create Project:
- Name:
ListSorter - Copy the Project ID
- Name:
-
Add Web Platform:
- Settings → Platforms → Add Platform → Web
- Hostname:
localhost
-
Create Database:
- Databases → Create Database
- ID:
list-sorter-db
-
Create Collection:
- Create Collection
- ID:
lists - Permissions: Add "Users" role with all permissions (Create, Read, Update, Delete)
-
Add Attributes (click Create Attribute for each):
listName- String (200) - Requireditems- String (1000) - Required - ArraysortedItems- String (1000) - ArraytieredItems- String (5000)completed- Boolean - RequiredcreatedAt- Integer - RequiredcompletedAt- IntegeruserId- String (100) - RequiredupdatedAt- Integer - Required
-
Create Indexes:
userId- key - userIdcreatedAt- key - createdAtupdatedAt- key - updatedAt
-
Enable Auth:
- Auth → Settings → Enable "Email/Password"
Edit src/environments/environment.ts:
export const environment = {
production: false,
appwrite: {
endpoint: 'http://localhost/v1',
projectId: 'YOUR_PROJECT_ID', // Paste your project ID here
databaseId: 'list-sorter-db',
collectionsId: {
lists: 'lists'
}
}
};# Install dependencies (if not already done)
npm install
# Start the app
npm start
# Open http://localhost:4200- Click "Register"
- Enter email, name, password
- Create a list and start sorting!
Your data is now syncing to AppWrite! ✨
Can't connect to AppWrite?
- Check Docker:
docker ps(should see appwrite container) - Wait 30 seconds after starting AppWrite
- Try restarting:
docker restart appwrite
Registration fails?
- Check Email/Password auth is enabled in AppWrite console
- Verify project ID in environment.ts
- Check browser console for errors
Data not syncing?
- Verify collection permissions include "Users" role
- Check indexes are created
- Look for errors in browser console
- Read
APPWRITE_SETUP.mdfor detailed setup - Read
MIGRATION_NOTES.mdfor what changed - Deploy to production with AppWrite Cloud
For production, use AppWrite Cloud:
- Sign up at https://cloud.appwrite.io
- Create project and configure as above
- Update
environment.ts:endpoint: 'https://cloud.appwrite.io/v1', projectId: 'YOUR_CLOUD_PROJECT_ID'
- Add your production domain to platforms
- Deploy your Angular app
That's it! 🚀