https://github.com/nima-moradi1/newgram
NewGram is a social media app which you can post your favorites, like , dislike , bookmark and even explore and follow others !
https://github.com/nima-moradi1/newgram
appwrite-auth appwrite-database appwrite-storage rhf shadcn-ui tailwindcss tanstack-react-query typescript vitejs zod
Last synced: 3 months ago
JSON representation
NewGram is a social media app which you can post your favorites, like , dislike , bookmark and even explore and follow others !
- Host: GitHub
- URL: https://github.com/nima-moradi1/newgram
- Owner: Nima-Moradi1
- Created: 2024-07-15T09:55:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T11:26:21.000Z (almost 2 years ago)
- Last Synced: 2024-07-16T12:21:12.674Z (almost 2 years ago)
- Topics: appwrite-auth, appwrite-database, appwrite-storage, rhf, shadcn-ui, tailwindcss, tanstack-react-query, typescript, vitejs, zod
- Language: TypeScript
- Homepage:
- Size: 2.39 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NewGram
A Social Media App
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
## 🔋 Features
👉 **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:
- [Git](https://git-scm.com/)
- [Node.js](https://nodejs.org/en)
- [npm](https://www.npmjs.com/) (Node Package Manager)
**Cloning the Repository**
```bash
git clone https://github.com/Nima-Moradi1/NewGram.git
cd social_media_app
```
**Installation**
Install the project dependencies using npm:
```bash
npm install
```
**Set Up Environment Variables**
Create a new file named `.env` in the root of your project and add the following content:
```env
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](https://appwrite.io/).
**Running the Project**
```bash
npm start
```
Open [http://localhost:3000](http://localhost:3000) in your browser to view the project.
=======
# React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
## Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level `parserOptions` property like this:
```js
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
}
```
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
>>>>>>> 675e6c8 (basic setup and css files and configs)