To use this app, add a .env file with the following variables:
- APPWRITE_KEY
- PASTES_COLLECTION_ID
- PROJECT_ID
- ENDPOINT
You can get the APPWRITE_KEY, ENDPOINT and PROJECT_ID from your Appwrite Dashboard after creating them respectively. When done, run
cd setup
yarn
node appwrite-pastebin.js
The last command runs the appwrite-pastebin.js which creates our PASTES collection and spits out its ID, so copy it and insert it into the .env file.
Then run
cd ..
yarn start
to start the React App.