Skip to content

Exquisify/Hello-world-api

Repository files navigation

join our community to build with us https://t.me/+sq2jJQgysWAxMjY0 Hello-world is designed to help crypto traders, investors, and analysts share high-quality market ideas in a transparent and community-driven environment. The backend handles authentication, content management, rewards logic, premium access, and Stellar blockchain interactions.

✨ Key Features

User Authentication & Authorization

Secure user registration and login

Role-based access (regular users, premium users, admins)

Crypto Idea Management

Create, edit, delete, and fetch trading ideas

Support for technical analysis, market insights, and research posts

Community-driven upvotes and discussions

Token Incentives

Reward users for high-quality contributions and engagement

Track balances and contribution scores

Integration with Stellar-based tokens

Premium Content Access

Subscription or token-gated premium ideas

Exclusive content from experienced analysts

Market Data Integration

Real-time price feeds and chart-ready data

Optimized endpoints for frontend visualizations

Governance Support (Future)

Community voting using platform tokens

Proposal and decision tracking

🏗 Tech Stack

Backend Framework: NestJS

Language: TypeScript

Database: PostgreSQL (via TypeORM)

Blockchain: Stellar Network

Smart Contracts: Soroban

Authentication: JWT

API Style: REST

Environment Management: dotenv

📂 Project Structure src/ ├── auth/ # Authentication & authorization ├── users/ # User management ├── ideas/ # Crypto idea posts & interactions ├── rewards/ # Token rewards & contribution logic ├── premium/ # Premium content & access control ├── market/ # Market data integration ├── common/ # Shared utilities, guards, decorators ├── app.module.ts ├── main.ts

⚙️ Setup & Installation

  1. Clone the Repository git clone https://github.com/Exquisify/Hello-world.git cd Hello-world

  2. Install Dependencies npm install

  3. Configure Environment Variables

Create a .env file:

PORT=3000 DATABASE_URL=postgresql://user:password@localhost:5432/helloworld JWT_SECRET=your_jwt_secret STELLAR_NETWORK=testnet SOROBAN_RPC_URL=https://soroban-testnet.stellar.org

  1. Run the Server npm run start:dev

The API will be available at:

http://localhost:3000

🔐 Security Considerations

All sensitive credentials are managed via environment variables

JWT-based authentication for protected routes

Input validation using DTOs and class validators

Role guards for premium and admin-only features

🧭 Roadmap

Advanced governance modules

Reputation-based reward weighting

On-chain content verification

Decentralized moderation mechanisms

Mobile-friendly API optimizations

🤝 Contributing

Contributions are welcome! Please open a pull request and ensure your changes follow the project’s coding standards and repository rules.

📄 License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6