Awesome
Places
This app allows users to add comments and photos to locations on a map.
Getting Started
Appwrite
The following steps use the Appwrite CLI to set up Appwrite.
- Create the project via the Appwrite Admin Console
- ID: places
- Name: Places
- Copy the
appwrite.json.default
toappwrite.json
- Deploy the collections
echo a | appwrite deploy collection
- Create an API Key
appwrite projects createKey --projectId places --name "Places Functions" --scopes documents.read documents.write files.read files.write
- Take note of the
secret
- Deploy the functions
- Update variables in the
appwrite.json
:APPWRITE_FUNCTION_ENDPOINT
- your HTTPS Appwrite endpointAPPWRITE_FUNCTION_API_KEY
- thesecret
from the previous step
- Compile each of the functions in the
appwrite-functions
folder:- Go into the function folder
- Run
npm i && npm run build
- Go back up to the folder with
appwrite.json
and deploy all the functions:echo a | appwrite deploy function
- Update variables in the
- Create the storage buckets
appwrite storage createBucket --bucketId photo-uploads --name "Photo Uploads" --fileSecurity true --permissions 'create("users")' --enabled true --maximumFileSize 5000000 --encryption true --antivirus true --allowedFileExtensions jpg png heic jpeg
appwrite storage createBucket --bucketId photos --name "Photos" --fileSecurity false --permissions 'read("any")' --enabled true --maximumFileSize 5000000 --encryption true --antivirus true --allowedFileExtensions jpg png heic jpeg
Places App
- Copy the
.env
to.env.local
- Fill in the values in
.env.local
- Start the app:
npm i && npm start