DEV Community

Cover image for Appwrite x DEV Hackathon Help Thread
dev.to staff for The DEV Team

Posted on

Appwrite x DEV Hackathon Help Thread

**If you're participating in the Appwrite x DEV hackathon and you need some help with your submission, you've come to the right place!

If you have any questions about how this contest works (ex: due dates, how to post your submission, picking a category, etc.) the DEV team will be happy to assist you.

If you are running into issues or get stuck when it comes to Appwrite's self-hosted backend-as-a-service platform, please leave those questions here as well.

Comment below if you need asynchronous assistance with the Appwrite x DEV Hackathon ❤️

P.S. If you'd like to share an update on the progress you're making on your project or if you'd like to connect with other participants, please do so in the community discussion thread!

Latest comments (149)

Collapse
 
mixko50 profile image
Apisit Maneerat

Hello, I have participated in the #appwritehack and I got 2 credits for community listings, badge, but I didn't get the code for the Forem shop via email, How can I get the code for the Forem shop.

Collapse
 
adityaaryam profile image
Aditya Aryam

Any idea, when would the results be out

Collapse
 
mdsahiloss profile image
Md Sahil

can I update my post that was posted for #appwritehack on 12th may ?

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
leviarista profile image
Leví Arista

Nevermind. Fixed by changing my domain from mydevcorner.vercel.app to mydevcorner.vercel.app

Collapse
 
gersondi profile image
gersondi

Appwrite when hosted locally has its endpoint as "localhost". I have Appwrite on Gitpod then what will be my endpoint?

Collapse
 
gersondi profile image
gersondi

Appwrite when installed locally has it's endpoint "locahost". I have Appwrite on Gitpod then what will be my Appwrite endpoint?

Collapse
 
brandontroberts profile image
Brandon Roberts

Your Appwrite endpoint is in the settings for the project. Go to your project inside the Appwrite instance, and go to Settings, and the API endpoint is there.

Gitpod Appwrite

You need to use https instead of http.

For example, using our integration repo gitpod.io/#https://github.com/appw... with a new instance. An example Appwrite endpoint URL would be:

https://8080-appwrite-integrationfor-ljtmw6hfg51.ws-us44xl.gitpod.io/v1
Enter fullscreen mode Exit fullscreen mode
Collapse
 
gersondi profile image
gersondi

Got it. Thanks!

Collapse
 
nikolayadvolodkin profile image
Nikolay Advolodkin

So we're just submitting an app somewhere? How is the contest being judged and on what criteria?

Collapse
 
adityaoberai profile image
Aditya Oberai

Hey @nikolayadvolodkin
For your submission, we'll definitely need a public code repository for your project. Aside from that, we would appreciate a video recording or screenshots of your project too.

As far as judging goes, we'll be looking at the project you build and how it leverages Appwrite to solve your problem.

Collapse
 
menard_codes profile image
Menard Maranan

Hello there, just a question regarding deployment. Is it possible to deploy Appwrite to Heroku? I'm totally new to Appwrite and I've been struggling with this for quite some time now.

Collapse
 
gewenyu99 profile image
Vincent Ge

Ah, yes. You're not alone. Heroku should be possible in theory, but I've seen similar complaints. It seems Heroku doens't play nice with Appwrite at the moment. I would recomment a DigitalOcean droplet, GCP VM, Elastic containers from AWS, or similar VPCs (like azure, vultur, alibaba cloud, linode, etc).

Collapse
 
menard_codes profile image
Menard Maranan

Thanks for answering!
Actually, I just went for digital ocean after struggling with it for quite some time.

Collapse
 
adexta profile image
Ad Xt

First time working with Appwrite and I am trying to add login/signup features. I was able to install it with Docker but things didn't go well on localhost, so I decided to deploy the app with vercel, now I have a 405 Error - Appwrite Exception.

Collapse
 
gewenyu99 profile image
Vincent Ge

Hmmm, what error did you get on local host?

Were you able to access the Appwrite console on local host?

Collapse
 
adexta profile image
Ad Xt

I can access the console on localhost.

Error on localhost:
Access to XMLHttpRequest at 'localhost/v1/account' from origin 'localhost....' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Thread Thread
 
adexta profile image
Ad Xt

The error is gone, the "hostname" in console platforms was incorrect.

Thread Thread
 
gewenyu99 profile image
Vincent Ge

That would makes sense. The platforms are meant to whitelist cross origin requests. Afterall you don't want someone to spoof your frontend and make requests to your Appwrite instance. They'd then be able to inject code to steal passwords etc ;)

Collapse
 
smppatel99999 profile image
Sahil Patel

Hey there, when I execute the cloud function I get this error. There is only a simple console log in index js file.

TypeError: userFunction is not a function
at /usr/local/src/server.js:38:19
at processTicksAndRejections (node:internal/process/task_queues:96:5)

Collapse
 
gewenyu99 profile image
Vincent Ge

Do you mind providing me the code you've deployed? I can take a look :D

Collapse
 
smppatel99999 profile image
Sahil Patel

It is just a simple console,log("Hello there").

Thread Thread
 
gewenyu99 profile image
Vincent Ge

Did you call res.json() or res.send()?

Did you generate the function and deploy via the CLI or through a compressed file?

Thread Thread
 
smppatel99999 profile image
Sahil Patel

I tried another example from 30days of appwrite and also from the Appwrite docs. But no luck.

Yes I did generate it and deployed using compressed file on the Appwrite console. And executed as well from there. Yes I did do res.json() and res.send().

Thread Thread
 
gewenyu99 profile image
Vincent Ge

That's strange 🤔

If the generated example from the CLI worked fine, then it isn't anything wrong with the deployment or executor.

Are you calling the code in a file outside index.js? Where and how is userFunction defined?

If you want to get quicker responses, I recommend you join our Discord and tag me in your questions @VincentGe