- Node.js - 16.x
- Appwrite - 1.3.x
- Appwrite CLI
- API Key from TMDB
-
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
valueappwrite 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 totrue
to allow self-signed certificatesAPPWRITE_API_KEY
- The API Key secret from the previous stepTMDB_API_KEY
- The API Key from TMDB
-
Install dependencies:
npm i
-
Run the seed script:
npm run seeds