Thanks to visit codestin.com
Credit goes to github.com

Skip to content

RohanSai22/solX

Repository files navigation

SolX - Solana Social Platform

A decentralized social platform built on Solana blockchain where users can share their achievements and milestones in the Web3 space.

🌟 Features

  • Create and share posts about your blockchain/Web3 achievements
  • Tag posts with relevant categories
  • Real-time updates using Solana's fast blockchain
  • Secure authentication using Solana wallets
  • Modern UI with gradient effects and glass-morphism design
  • Responsive layout for all devices

🚀 Tech Stack

  • Frontend: Vue.js 3
  • Blockchain: Solana
  • Smart Contract: Rust with Anchor Framework
  • Wallet Integration: Solana Wallet Adapter
  • Styling: Tailwind CSS

📋 Prerequisites

  • Node.js (v16 or higher)
  • Rust (latest stable version)
  • Solana CLI tools
  • Anchor Framework
  • A Solana wallet (Phantom recommended)

🛠️ Installation

  1. Clone the repository:
git clone https://github.com/RohanSai22/solX.git
cd solX
  1. Install frontend dependencies:
cd app
npm install
  1. Install Solana program dependencies:
cd ../program-rust
npm install
  1. Build the Solana program:
anchor build
  1. Deploy the program:
anchor deploy
  1. Start the frontend application:
cd ../app
npm run serve

💻 Development

Frontend Development

The frontend is built with Vue.js 3 and uses the following key components:

  • PostForm.vue: Form for creating new posts
  • PostCard.vue: Component for displaying individual posts
  • PostList.vue: List of posts with sorting and filtering
  • PageProfile.vue: User profile page
  • PageUsers.vue: User discovery page

Smart Contract Development

The Solana program is written in Rust using the Anchor framework:

  • lib.rs: Main program logic
  • Post: Account structure for storing posts
  • sendPost: Instruction for creating new posts
  • updatePost: Instruction for updating existing posts

🔧 Configuration

  1. Update program ID in Anchor.toml:
[programs.devnet]
sol_linked = "YOUR_PROGRAM_ID"
  1. Update program ID in app/src/idl/sol_linked.json

  2. Configure your Solana wallet to use Devnet

🌐 Network

The application is configured to use Solana's Devnet by default. To switch networks:

  1. Update the cluster URL in app/src/composables/useWorkspace.js
  2. Update your wallet network settings
  3. Redeploy the program if necessary

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE.txt file for details.

🙏 Acknowledgments

📞 Support

For support, please open an issue in the GitHub repository or contact the maintainers.

🔄 Updates

  • v1.0.0: Initial release with basic post creation and viewing functionality
  • v1.1.0: Added post editing and user profiles
  • v1.2.0: Implemented tag-based filtering and search

Made with ❤️ by Rohan

About

solX is a new and latest way of X

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published