Skip to content

moix197/justapickledapp

Repository files navigation

Just A Pickle DApp

A decentralized application built with Next.js, Solana, and MongoDB, featuring a modern UI with Tailwind CSS and DaisyUI. This platform enables permissionless token sales and swaps on the Solana blockchain.

🚀 Features

  • Token Sales Platform

    • Create and manage token sales through an intuitive dashboard
    • Public-facing pages for each token sale
    • Permissionless participation - only requires a Solana wallet
    • Real-time token sale tracking and management
  • Token Swap Platform

    • Decentralized token swapping functionality
    • Permissionless access with Solana wallet
    • Real-time price feeds and liquidity information
  • Technical Features

    • Solana blockchain integration
    • Wallet connection support (Phantom, Solflare, etc.)
    • MongoDB database integration
    • Modern UI with Tailwind CSS and DaisyUI
    • TypeScript support
    • Next.js 14 framework

📱 Application Overview

Token Sales Dashboard

The platform provides a comprehensive dashboard for token sale creators to:

  • Create new token sales
  • Set sale parameters and tokenomics
  • Monitor sale progress and participation
  • Manage multiple sales simultaneously

Public Sale Pages

Each token sale has its own public-facing page where:

  • Users can view sale details and tokenomics
  • Participate in the sale using their Solana wallet
  • Track sale progress and remaining tokens
  • View historical participation data

Token Swap Platform

The integrated swap platform allows users to:

  • Swap tokens directly on-chain
  • View real-time prices and liquidity
  • Execute trades permissionlessly
  • Access multiple trading pairs

📋 Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn
  • MongoDB (local or remote instance)
  • Solana wallet (e.g., Phantom)

🛠️ Installation

  1. Clone the repository:
git clone [your-repository-url]
cd justapickledapp
  1. Install dependencies:
npm install
# or
yarn install
  1. Set up environment variables: Create a .env.local file in the root directory with the following variables:
# Database Configuration
MONGODB_URI=your_mongodb_connection_string

# Authentication
NEXTAUTH_SECRET=your_nextauth_secret
NEXTAUTH_URL=http://localhost:3000

# Solana Configuration
HELIUS_API_KEY=your_helius_api_key  # Required for RPC access and enhanced Solana functionality

Required Environment Variables:

  • MONGODB_URI: Your MongoDB connection string for database access
  • NEXTAUTH_SECRET: A random string used to encrypt cookies and tokens
  • NEXTAUTH_URL: The base URL of your application
  • HELIUS_API_KEY: Your Helius API key for enhanced Solana RPC access. You can get one at https://dev.helius.xyz/

🏃‍♂️ Running the Application

  1. Start the development server:
npm run dev
# or
yarn dev
  1. Initialize the database: Visit http://localhost:3000/api/auth/db/tasks/launch in your browser to create the database locally.

  2. Open http://localhost:3000 in your browser to view the application.

🏗️ Available Scripts

  • npm run dev - Start development server
  • npm run build - Build the application
  • npm run start - Start production server
  • npm run lint - Run ESLint
  • npm run export - Export static files

🛠️ Tech Stack

  • Frontend Framework: Next.js 14
  • Language: TypeScript
  • Styling: Tailwind CSS + DaisyUI
  • Blockchain: Solana
  • Database: MongoDB
  • Authentication: NextAuth.js
  • State Management: Zustand

📝 License

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

🤝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

📧 Support

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

About

The dapp from justapickle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published