**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 hav...
For further actions, you may consider blocking this person and/or reporting abuse
"Projects under this category should make use of user-generated content on the internet in some way"
Please can someone elaborate on this a little.
Hello @georgeisiguzo! in simple English , user-generated content is where a user can generate content on the internet. For example when the user is able to publish an article, upload a picture, submit a tweet, write a review ...etc
I built an income tracker where the user is able to write on the input field, submit their data, edit and update the document, as well as delete the document. Does this qualify it under the category for user-generated content?
I think so, I'm not sure. According to my understanding, a user-generated content is where a user is able to generate content for others to see not himself. But this is how I understand the concept I'm not sure if that's the right definition. Anyway, Best of luck and well done on your project, It's actually a great idea!
Thank you, Mostafa
Thanks @moose_said
So this means on the app I create, the users should be able to create (or generate) content right?
Thanks again
I believe so yes. You're most welcome :)
Hello,
I have the same doubt. Can someone please explain what that means? Or give some examples?
Thanks!
Yes, I need to get an understanding of that, or maybe, if it's necessary keep spaces for user inputs.,
Can I host appwrite in Azure?
Yes! You can use Azure Virtual Machines :)
in case anyone runs into this thread, here's an update for azure and appwrite techcommunity.microsoft.com/t5/app...
You're welcome! But this reply is after such a long day. šāļø
Hey Jackson
A Standard_B2s VM on Azure is more than enough to get you running Appwrite for yourself. I've tried this one in the past and it works well š
really thanks :)
please tell me, how can do it?
Can you please let me know till what step you're comfortable? Are you able to create a VM or not?
I can create vm. but how to install appwite in ubuntu vm?
I can create VM on azure (windows vm or ubuntu vm). but how to install for production level or scalable or maintainable.
Once you create an Ubuntu VM, go ahead and install the Docker CLI.
Once that is done, you can install Appwrite on your system by running the following command in your terminal:
really thanks :) ā„
Hello Appwrite team,
Are we allowed to do the hackathon in a team? I would love to work on this with my best friend.
Also, for the rewards and swag, will both the members receive the swag (stickers and tee-shirt)? Or only one?
Thanks in advance!
Hi Riday
Yes, all team members will be eligible for swags.
Thank you so much for the reply!
I believe you can but Dev Community will not distribute the prize. If you win, they will give the prize to the one who submitted the project.
Hey there, everyone! Hope all of you're doing great on the hackathon.
I'm having a little problem with using Avatars API in Python, I'm using this code to get a favicon for a website but have no idea where the image is stored or ready to view.
Any idea on that? Thanks!
The file returned to result is a binary of the image. You can write this to a string or a buffer to save the image.
Try this:
it works! Thank you.
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)
Do you mind providing me the code you've deployed? I can take a look :D
It is just a simple console,log("Hello there").
Did you call res.json() or res.send()?
Did you generate the function and deploy via the CLI or through a compressed file?
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().
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
Hello guys,
I'm struggling with Appwrite indexes. Here's my use case:
id
,username
andis_public
user.name
)true
)For this, I tried to create a search index. I tried a few names:
is_public-username
<- Received error message in the browser's console:AppwriteException: Index not found: user_id,is_public
- Link to imageis_public,username
<- Does not qualify as a valid index key - Link to imageHere's the part of the FE code that I use to specify the query:
Unfortunatly, I could not find any explanation on what I could do. So my question is:
Hi, you were reaaallllly close to getting it right. The issue you were having with
is_public,username <- Does not qualify as a valid index key - Link to image
is that you had a comma in theIndex Key
. We don't allow commas in the name of an index because that really messes with parsing SQL :PFor example, this is from my project, patina-bot
Here's how I would create a two column index:
And here's what the created index looks like
thank you so much for your reply. Works like a charm now š„³
Hi everyone! Please I need help.
I'm using an express API to avoid CORS issues. How can I implement session management from the server.
doing sdk.account.createsession(...) doesn't manage session across frontend pages
Thanks.
Hi there, if you're trying to solve CORS issues, add a relevant web platform. We block all cross domain request by default for security, but you can add as many allowed web platforms as you wish.
The Server SDK isn't really meant to be used with end user sessions, they're under an Admin scope. I would just resolve CORS issues and use a frontend SDK :D
Reference => dev.to/appwrite/30daysofappwrite-y...
Thanks. I was using Gitpod and even though I added web platforms to my project, I still get CORS issues.
I'm using digital Ocean now and its working fine
This might be something specific to the way Gitpod routes their requests... But it should work still.
Have you seen Appwrite + Gitpod in this guide? gitpod.io/guides/appwrite-and-gitpod
I was having the same cors issue (with Gitpod), however, changing the host name from the default http to httpsfixed the issue for me.
To participate, your projects can be as complex or as simple as you feel comfortable with. We encourage you to build what ever you have the time/knowledge to build. If you're out for the prizes, you might want to do something more novel or cool to catch the judges eyes ;)
I had a question about the storage :
Since there is no cloud version of Appwrite, where do we store the user data like email, password and media?
Hi Vinit
For the hackathon, you can either host Appwrite on your local machine or a cloud VM. In the setup process, Appwrite creates a Docker volume on your local storage. After that, you don't need worry about the user data, Appwrite's APIs, like the Account API (for authentication) and the Storage API (for media), will manage all the rest.
Thanks a lot for the clarification.
Also, even after installing Appwrite using npm, CMD returns :
appwrite command does not exist.
Is there another way to install Appwrite CLI on Windows 10?
Is this issue occuring after running the command
npm install -g appwrite-cli
?Does restarting the shell help?
Yes it is occurring after that
Hello, I am building my project with appwrite, Can I query database in a cloud function? I keep getting "execution timeout" error.
Is it possible to participate with the same application developed for mobile and web in different categories? i.e.:
thanks !
Hey Fabian! When it comes to submitting to multiple categories, we will decide a category for you when it comes time for judging. Typically based on whichever category your project fits best into.
Hello :)
Can i use ReactNative?
Hi Yamit
Yes, you can. Our Web SDK can be used with React Native.
I checked and it working fine :)
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.
Hmmm, what error did you get on local host?
Were you able to access the Appwrite console on local host?
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.
The error is gone, the "hostname" in console platforms was incorrect.
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 ;)
Hi everyone. I was recently deploying my appwrite application. But where I tried creating a session, it shows
cross-origin error
.Does anyone knows how do I fix this. I'm used
npx create-react-app
What you're missing is adding a Web Platform in the console. Check this out:
dev.to/appwrite/30daysofappwrite-y...
We block CORS request by default for security, you just need to allow them through adding a Web Platform.
Help Required!ā
My one of the document field path is going to be like array of objects, nested objects in the image shown below but I'm confused is this possible with appwrite because appwrite only supports attributes such as string ,float, integer, email, ip, enum, boolean & url.
You have a few options, document attributes can be made into arrays, or you can save your JSON as a string.
These wouldn't result in queryable data, because querying unstructure data is terrible for performance.
If you want to create something like this that must be queried, creative relational DB design allows you achieve much the same.
It means it's not possible with Appwrite ? Thanks for the detailed solution but now I have decided to use Firebase for database and Appwrite only for login service in my current project.
How do i deploy a web app which uses Appwrite, like normally i deploy a react app to vercel, is it the same way for Appwrite too ?
Or are there some changes you need to make to the .env files and declare environment variables in vercel ?
I am totally new to these stuffs, i'll be glad if ya'all reply !!
Appwrite is the backend (e.g, database, storage, user, functions) that you self host where ever you like (see appwrite.io/docs/installation one-click section). The 30 days of appwrite is good place to start, helped me a lot in understanding how it all works.
Thanks a tonn !!
dev.to/appwrite/30daysofappwrite-a... <-- This was what i was looking for !!
Hii, I'll try Appwrite for the first time. So would basic projects that use Appwrite be considered as a valid project??
Well, I will try appwrite for the first time too. I believe if you think of any idea where a user can generate content on the internet. User-Generated content like making a tweet, publishing an article, uploading pictures... etc
Yes :)
Hello, I hosted appwrite on my vps, I am query the datase inside cloud function, But I got an error in logs : Executionn timeout.
I would sanity check that you've passed in all the required environment variables.
We pass in project ID by default, but you have to add your project's endpoint and API key in the settings of your cloud function :)
Yes, I passed required parameters: APPWRITE_FUNCTION_ENDPOINT and APPWRITE_FUNCTION_API_KEY
Do you know how long it takes to execute the query outside of cloud function? If you're getting a timeout, the query might be really large and slow. I would also try to do a simple write to a collection to see if your client is initialized correctly and your API key has the correct permissions.
By default, the function times out after 15 seconds. If you're getting a timeout error, consider increasing the timeout in the settings of your function.
I tried debugging the first getDocument request, it failed, I tried the same request on postman it worked, then I tried to use axios manually, it did not worked, maybe there is something in cloud functions environnement that prevent execution, I am not experience enough on Docker to watch there..
You should certainly be able to use the SDK just fine in a cloud function... There's a few things you can look at for reference:
dev.to/appwrite/building-moderatio...
dev.to/appwrite/30daysofappwrite-o...
Nevermind. Fixed by changing my domain from mydevcorner.vercel.app to mydevcorner.vercel.app
Appwrite when installed locally has it's endpoint "locahost". I have Appwrite on Gitpod then what will be my Appwrite endpoint?
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.
You need to use
https
instead ofhttp
.For example, using our integration repo gitpod.io/#https://github.com/appw... with a new instance. An example Appwrite endpoint URL would be:
Got it. Thanks!
Does a not deployed project has less chance to win in the hachathon?
Yep. As long as you have a repo, a demo, or something we can use to try and judge :D
Gotcha! š
How can I access the currently logged in user's ID on my next js server? If I create an API with next js, I need to know the credentials of the user who is using the API.
After you create an account session (log in a user) using the Accounts API, the
userId
of the logged in user is available in the session object returned as the response from theSDK.Session is created by the frontend. I want to identify the user on the server.
In that case you can create a JWT. The user details should be identifiable in the payload, which you can pass to and check on the server.
Someone answered this on discord.
can we use appwrite lite? @eldadfux
Unfortunately, Appwrite lite is a work in progress
thanks for the response, but what if i can make it work? does it qualified as a legitimate submission?
It will, but its been outdated for a few good versions, it will be a challenging task š
"Projects under this category should make use of user-generated content on the internet in some way"
Does this mean we have to scrape already existing content from the web and create an app that makes use of that content? (for example fetching a user's tweets using Twitter API) OR,
Does this mean that users should be able to post NEW content on the app we build?
Hey there! Does any buddy here know how to open AppWrite console in Python? I have installed AppWrite but have no idea about opening the console.
Thanks!
Once you've installed Appwrite on your local system, the next step is to run
http://localhost/
in your browser.Hello, I have installed Appwrite console, and would you please let me know where I can find the 'Appwrite console'? MacOS. Thank you.
Just open your browser and input
localhost
and hit return.Once you've installed Appwrite on your local system, the next step is to run
http://localhost/
in your browser.For Flutter, All platforms are required?
Any idea to develop will work?
Hi Pratik
As long you leverage Flutter for any platform you prefer, you're good to go š
And yes, since Flutter is a valid part of our "Mobile Moguls" track, any idea you develop will be eligible š
How am I going to submit my project?
Please use this post template to create your submission: dev.to/new/appwritehack
How to change the default email template? I want to customise the the look of it. Is there a way to do so?
Yes you can edit the template by modifying this file
github.com/appwrite/appwrite/blob/...
Will a react native mobile app that does not use of user-generated content fall under the Mobile Moguls category or have to fall under Web2 Wizards since it would be making use of the Web SDK ? It is finance based
I wouldn't worry about this at all! Focus on building something cool. If it's a mobile app and it's cool, we don't care if it's built with React Native, or any crazy cool tech!
Hello, How to make every user to have a bio for example with appwrite web?
Sorry, what do you mean by have a bio with Appwrite Web?
Hi! I already accomplished what I needed. Thank you so much for trying to help!
Hey guys, What is the use case of node js server sdk of appwrite. I think the web sdk can do almost everything. Just curious to know the difference between them for JAM stack development.
Great question...
The Node JS SDK is a Server SDK whereas the web SDK is a Client SDK
They have different powers ( if you may ).
You can refer to this article which explains the differences
dev.to/appwrite/30daysofappwrite-s...
Thanks for clarification.
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.
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).
Thanks for answering!
Actually, I just went for digital ocean after struggling with it for quite some time.
I'm trying to completely use Appwrite for the backend and it seems fine for now. But can we include express or socket in the project? I'm just curious.
You can have whatever you'd like in there :)
In the mobile moguls category, is there a particular category of apps to create, or can we create any type of app as long as it uses the appwrite SDK
You can create what ever you wish :) I wouldn't worry about the exact category of app you've created. If it's cool enough, we'll figure out something for you!
Focus on building something interesting, fun, or cool!
For the mobile moguls category, what kind of apps are we supposed to make, also does the app have to be fully functional?
I have limited space on my PC. Can I install Appwrite on digital Ocean instead?
Is it allowed?
Yes, DigitalOcean is fine as long as you select minimum of 1 vCPU and 2 GB RAM =)
(Thx Aditya for info)
Thanks @tessamero
Hi,Please the Web2 Wizards category is not clear..i dont understand the goal
Answered your question in the following comment Teyim: dev.to/adityaoberai/comment/1ni4p
Hi,please the Web2 Wizards category is not really clear to me..any further explanation by what is meant by user-generated content on the internet will be appreciated
Hi Teyim
In the Web2 Wizards, you're essentially building any application that caters to the internet of today. Essentially, it must feature the creation or consumption of content or information by a user on the web.
Am I allowed to use a Javascript-based mobile app framework like React Native or Quasar and enter in the Mobile Moguls category?
Yeah! That sounds super cool!
can I update my post that was posted for #appwritehack on 12th may ?
Any idea, when would the results be out
I would love to participate but unfortunately I am not 18 years old yet. Is there a specific reason why you have to be 18 years old?
Hello! Unfortunately, DEV hackathons are currently only open to community members 18 years of age and older. We would absolutely love to open this up to younger community members, but we are legally unable to at this time. We revisit the topic frequently as a team and intend to open up our challenges to younger folks if and when it's possible for us to do so. I'm so sorry to bear this news. We really value having all of you as part of DEV.
Thanks for your reply! Is it allowed that an adult family member signs up for the hackathon and I create the project? If yes, what are the criteria? For example, can I use my personal Dev.to account?
There must be a work around. I mean why don't you collaborate with a trusted above 18 friend where they can submit the project for you and they will get the prize if you win.
Hi,Please the Web2 Wizards category is not clear..i dont understand the goal
Answered your question in the following comment Teyim: dev.to/adityaoberai/comment/1ni4p
Is there a way for teen to participate in?
Hello! Unfortunately, DEV hackathons are currently only open to community members 18 years of age and older. We would absolutely love to open this up to younger community members, but we are legally unable to at this time. We revisit the topic frequently as a team and intend to open up our challenges to younger folks if and when it's possible for us to do so. I'm so sorry to bear this news. We really value having all of you as part of DEV.
So we're just submitting an app somewhere? How is the contest being judged and on what criteria?
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.
I want to deploy my app on vercel, how to do that?
You would have to deploy your frontend app on Vercel, then deploy Appwrite on a separate VPC or container somewhere. Make sure you add a web platform pointing to the vercel deployment to allow cross origin requests!
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.
Appwrite when hosted locally has its endpoint as "localhost". I have Appwrite on Gitpod then what will be my endpoint?