https://github.com/2002bishwajeet/almost-reddit
https://github.com/2002bishwajeet/almost-reddit
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/2002bishwajeet/almost-reddit
- Owner: 2002Bishwajeet
- Created: 2024-07-27T07:28:11.000Z (11 months ago)
- Default Branch: starter-template
- Last Pushed: 2024-07-29T21:35:49.000Z (11 months ago)
- Last Synced: 2025-03-09T22:31:43.036Z (4 months ago)
- Language: JavaScript
- Size: 194 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Building Almost Reddit
A social media platform built using React, Vite, and Appwrite, featuring authentication, thread creation, and media sharing. This project was developed for a workshop for [Appwrite Developer Meetup Delhi](https://lu.ma/oqelzoej).
## What is Appwrite
Appwrite is a backend platform for developing Web, Mobile, and Flutter applications. Built with the open source community and optimized for developer experience in the coding languages you love.
## Features
- **Authentication:**
- OAuth2 (GitHub, Discord)
- Signup (Name + Email)
- Anonymous Login
- **Databases and Storage:**
- Create a Thread
- Send Text and Images
- Delete Thread Messages## Installation
### AppwriteHead over to [cloud.appwrite.io](https://cloud.appwrite.io) to setup your backend.
### Web Project
To run this project locally:
1. Clone the repository
2. `cd` into the repo folder
3. Type the following commands```bash
yarn install
yarn dev
```## License
This project is [MIT](https://choosealicense.com/licenses/mit/) licensed.
# React + Vite + Appwrite
This template should help get you started developing with React, Vite, and Appwrite.
## Recommended IDE Setup
[VS Code](https://code.visualstudio.com/)
## Need more functionality?
Check out [Appwrite Docs](https://appwrite.io/docs), which provides extensive documentation for extending your app with additional features like cloud functions, messaging, storage, and more.
## Technical considerations
**Why use Appwrite for this project?**
- Appwrite provides a complete backend solution, including authentication, databases, and storage, which are essential for building a platform like Reddit.
- The integration with React and Vite allows for a seamless developer experience, leveraging Appwrite's SDKs and tools.**Why enable OAuth2?**
OAuth2 allows users to authenticate using their existing GitHub or Discord accounts, reducing the friction of creating a new account and enhancing user experience.
**Why include Anonymous Login?**
Anonymous login allows users to explore the platform without the need for immediate registration, increasing user engagement and retention.
```jsx
// Example of Appwrite integration with React
import { Client, Account, ID } from "appwrite";const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject(''); // Your project IDconst account = new Account(client);
// Authentication example
const promise = account.create('[USER_ID]', '[email protected]', '');promise.then(function (response) {
console.log(response); // Success
}, function (error) {
console.log(error); // Failure
});
```We hope you enjoy using "Building Almost Reddit" as much as we enjoyed creating it. Your feedback and contributions are welcome! Happy coding!