Closed gewenyu99 closed 1 year ago
Hey @gewenyu99 and @Haimantika, I would like to contribute to this issue! Here's the detailed outline for the docs!
This project outline will be formatted similar to /doc/tutorials/react
and will provide a focused approach to understanding and implementing pagination in the Idea Tracker using Appwrite and the web platform.
hi @timDeHof, I assigned it to you, however, I will need @gewenyu99 to give you the thumbs up before moving forward. You should hear back first thing tomorrow :)
@timDeHof Amazing outline. I will quote you as an example for what outlines should look like ❤️
A few points:
Otherwise you should be good to start!
@timDeHof Another potential suggestion, how do you feel building an app without authentication, and not have this depend on the Ideas tracker project? Might be easier for those just interested in pagination?
Thank you @tessamero for assigning this to me. I will begin working on it.
Thank you @gewenyu99 for the compliment on the outline. The third mode sounds really cool hybrid of the two and will like to work on it at a later time.
Last night, I played around with seeding sample data to the idea tracker cloud database by adding a seed() function to the ideasProvider like this:
Also I added a button to the homepage to initiate it. The code I wrote was like this:
This worked and I was thinking of adding a ternary operation to have it only show when ideas state is empty or just ask the user to remove it after checking if the database is filled.
I like the suggestion of building an new app without authentication and separate from the ideas tracker project, like a todo app or contacts app maybe. I was just thinking of this tutorial being an addon to that project. But I could just follow the appwrite setup page in the react tutorial.
Thank you @tessamero for assigning this to me. I will begin working on it.
Thank you @gewenyu99 for the compliment on the outline. The third mode sounds really cool hybrid of the two and will like to work on it at a later time.
Last night, I played around with seeding sample data to the idea tracker cloud database by adding a seed() function to the ideasProvider like this:
Also I added a button to the homepage to initiate it. The code I wrote was like this:
This worked and I was thinking of adding a ternary operation to have it only show when ideas state is empty or just ask the user to remove it after checking if the database is filled.
I like the suggestion of building an new app without authentication and separate from the ideas tracker project, like a todo app or contacts app maybe. I was just thinking of this tutorial being an addon to that project. But I could just follow the appwrite setup page in the react tutorial.
Yeah, I'd personally like to have this tutorial be independent of other tutorials purely because it'll have a more contained scope.
Another point is that we will probably use a Node.js SDK to create the DB, collection, and documents used for mock/demo data with an API, just to show good practices. Having demo/seed data type code in frontend could be misleading and a bad practice for new developers.
WDYT?
@gewenyu99 that sounds like a great idea.
Were you thinking of something similar to JSONPlaceHolder's /todos
resources?
Here is the link to https://jsonplaceholder.typicode.com/ or I found this website called mockaroo for generating mock data. If so, I could probably use JSONPlaceHolder's /todos
to seed a database.
WDYT?
I have already started writing this tutorial for building a todo app using Appwrite cloud and React. But I can easily make the changes to use node-appwrite
@timDeHof I would prefer lower dependency where possible. JSONPlaceHolder is a good idea, but make sure you make it an adaptor pattern, so it can be replaced easily if JSON Place Holder goes down.
I have already started writing this tutorial for building a todo app using Appwrite cloud and React. But I can easily make the changes to use node-appwrite
This is fine, what I was thinking was providing a setup script, like setup.json
where it uses the Node.js SDK and setups their Appwrite project.
Thoughts?
closing issue as the PR was merged, great job!
💭 Description
Appwrite Databases can be paginated in many ways.
While we have this page:
/docs/products/databases/pagination
, but this is a reference style page, not a tutorial.Goal
Interactive tutorial focused on one of the client platforms of Web, Flutter, Android, and Apple, showcasing good pagination practices.
Content
src/routes/docs/tutorials
How to contribute
Pitch an outline detailing each page you plan to add and headings within, and ask to be assigned. Open a PR after the outline has been approved.
The Appwrite team will collaborate with you on the outline and PR.
Thanks for taking the time to make our documentation better 🙏
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?