Build a modern Social Media Application with a stunning UI ,a special tech stack, an infinite scroll feature, and amazing performance using React JS, Appwrite, TypeScript, and more.
Build a modern Social Media Application(SnapGram) with a stunning UI ,a special tech stack, an infinite explore posts scroll feature, and amazing performance using React JS, Appwrite, TypeScript, and more.
Clone the Repository:
git clone https://github.com/hemanthkumar314/Social_Media_Application.git
cd Social_Media_Application
First, create an account on AppWrite Cloud to obtain your Your_Appwrite_URL
Create a project in the Cloud to receive your Your_Appwrite_Project_URL
.. Then, create a storage bucket to get the Your_Appwrite_Storage_URL
, and set up a database using the and a Database with Your_Appwrite_Project_URL
Next, create three collections in the database, namely Users, Posts, and Saves, and obtain their respective IDs.
We need to setup Attributes and build relationships between the collections to work them off.
Create a .env
file in the root directory with the following environment variables:
VITE_APPWRITE_URL=Your_Appwrite_URL
VITE_APPWRITE_PROJECT_ID=Your_Appwrite_Project_URL
VITE_APPWRITE_STORAGE_ID=Your_Appwrite_Storage_URL
VITE_APPWRITE_DATABASE_ID=Your_Appwrite_Database_URL
VITE_APPWRITE_POST_COLLECTION_ID=Your_Appwrite_Database_Post_Collection_URL
VITE_APPWRITE_USER_COLLECTION_ID=Your_Appwrite_Database_user_Collection_URL
VITE_APPWRITE_SAVES_COLLECTION_ID=Your_Appwrite_Database_Saves_Collection_URL
Run the Frontend and navigate to http://localhost:5173
in broswer
npm run dev
Sign up or log in using your Google Account
Now, Enjoy your Social Media Application