An open-source social media application built with React, TypeScript, and Appwrite
View Demo
·
Report Bug
·
Request Feature
Explore social media with this user-friendly platform that has a nice look and lots of features. Easily create and explore posts, and enjoy a strong authentication system and quick data fetching using React Query for a smooth user experience.
- React.js
- Appwrite
- React Query
- TypeScript
- Shadcn
- Tailwind CSS
👉 Authentication System: A robust authentication system ensuring security and user privacy
👉 Explore Page: Homepage for users to explore posts, with a featured section for top creators
👉 Like and Save Functionality: Enable users to like and save posts, with dedicated pages for managing liked and saved content
👉 Detailed Post Page: A detailed post page displaying content and related posts for an immersive user experience
👉 Profile Page: A user profile page showcasing liked posts and providing options to edit the profile
👉 Browse Other Users: Allow users to browse and explore other users' profiles and posts
👉 Create Post Page: Implement a user-friendly create post page with effortless file management, storage, and drag-drop feature
👉 Edit Post Functionality: Provide users with the ability to edit the content of their posts at any time
👉 Responsive UI with Bottom Bar: A responsive UI with a bottom bar, enhancing the mobile app feel for seamless navigation
👉 React Query Integration: Incorporate the React Query (Tanstack Query) data fetching library for, Auto caching to enhance performance, Parallel queries for efficient data retrieval, First-class Mutations, etc
👉 Backend as a Service (BaaS) - Appwrite: Utilize Appwrite as a Backend as a Service solution for streamlined backend development, offering features like authentication, database, file storage, and more
and many more, including code architecture and reusability
Follow these steps to set up the project locally on your machine.
Prerequisites
Make sure you have the following installed on your machine:
Cloning the Repository
git clone https://github.com/adrianhajdin/social_media_app.git
cd social_media_app
Installation
Install the project dependencies using npm:
npm install
Set Up Environment Variables
Create a new file named .env
in the root of your project and add the following content:
VITE_APPWRITE_URL=
VITE_APPWRITE_PROJECT_ID=
VITE_APPWRITE_DATABASE_ID=
VITE_APPWRITE_STORAGE_ID=
VITE_APPWRITE_USER_COLLECTION_ID=
VITE_APPWRITE_POST_COLLECTION_ID=
VITE_APPWRITE_SAVES_COLLECTION_ID=
Replace the placeholder values with your actual Appwrite credentials. You can obtain these credentials by signing up on the Appwrite website.
Running the Project
npm start
Open http://localhost:3000 in your browser to view the project.
- Node.js (v14 or higher)
- npm or yarn
- Git
- Docker (optional)
You can run this application using Docker:
# Build the Docker image
docker build -t social-media-app .
# Run the container
docker run -p 5173:5173 social-media-app
The application will be available at http://localhost:5173
.
For development with Docker Compose, you can use:
# Start the development environment
docker-compose up
# Stop the development environment
docker-compose down
- Clone the repository
git clone https://github.com/Victor-Evogor/mesocial.git
cd mesocial
- Install dependencies
npm install
- Set up environment variables
cp .env.example .env
Edit .env
with your Appwrite credentials:
VITE_APPWRITE_URL=
VITE_APPWRITE_PROJECT_ID=
VITE_APPWRITE_DATABASE_ID=
VITE_APPWRITE_STORAGE_ID=
VITE_APPWRITE_USER_COLLECTION_ID=
VITE_APPWRITE_POST_COLLECTION_ID=
VITE_APPWRITE_SAVES_COLLECTION_ID=
- Start the development server
npm run dev
Visit http://localhost:5173
to view the application.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
MIT License
Copyright (c) 2024 Victor Evogor
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Victor Evogor - @victorevogor - [email protected]