node >= v20.11.1 required
port: 5173
port: 5174
port: 5175
cp .env.example .env
You'll have to set up an AppWrite account, and then add all of the details into your .env file.
Key | Type |
---|---|
image |
String |
bio |
String |
user_id |
String |
name |
String |
Profile Indexes:
KEY | TYPE | ATTRIBUTE | ASC/DESC |
---|---|---|---|
user_id | key | user_id | asc |
name | fulltext | name | asc |
Profile Settings (Update Permissions):
Add Role | PERMISSIONS |
---|---|
All guests | Read |
All users | Create, Read, Update, Delete |
Key | Type |
---|---|
user_id |
String |
video_url |
String |
text |
String |
created_at |
String |
Post Indexes:
KEY | TYPE | ATTRIBUTE | ASC/DESC |
---|---|---|---|
user_id | key | user_id | asc |
Profile Settings (Update Permissions):
Add Role | PERMISSIONS |
---|---|
All guests | Read |
All users | Create, Read, Update, Delete |
Key | Type |
---|---|
user_id |
String |
post_id |
String |
Like Indexes:
KEY | TYPE | ATTRIBUTE | ASC/DESC |
---|---|---|---|
user_id | key | user_id | asc |
id | unique | id | asc |
post_id | key | post_id | asc |
Like Settings (Update Permissions):
Add Role | PERMISSIONS |
---|---|
All guests | Read |
All users | Create, Read, Update, Delete |
Key | Type |
---|---|
user_id |
String |
post_id |
String |
text |
String |
created_at |
String |
Comment Indexes:
KEY | TYPE | ATTRIBUTE | ASC/DESC |
---|---|---|---|
post_id | key | post_id | asc |
Comment Settings (Update Permissions):
Add Role | PERMISSIONS |
---|---|
All guests | Read |
All users | Create, Read, Update, Delete |
Once you've add your AppWrite env variables in the .env
file, run this command.
pnpm i
npm run preview:host
npm run preview:upload
npm run preview:recommender
Run npm run serve:all
to run a dev server for each application.
At http://localhost:5173 you can open the host and see the working application.
I did a Next.js to Qwik porting from this repo https://github.com/John-Weeks-Dev/tiktok-clone-nextjs
Thanks @John-Weeks-Dev