Create a Project in Appwrite with the ID almost-netflix
Deploy the Collections using the using the Appwrite CLI and provided appwrite.json
appwrite deploy collection --all --yes
Deploy the bucket for the posters
appwrite deploy bucket
Create an API Key for the seed script and take note of the secret
value
appwrite projects createKey --projectId 'almost-netflix' --name "Seed Script" --scopes documents.write files.write
Create a .env
file from .env.example
and fill in:
APPWRITE_ENDPOINT
- The endpoint of your Appwrite instanceAPPWRITE_SELF_SIGNED
- Set to true
to allow self-signed certificatesAPPWRITE_API_KEY
- The API Key secret from the previous stepTMDB_API_KEY
- The API Key from TMDBInstall dependencies: npm i
Run the seed script: npm run seeds