pumpfun-smart-contract-frontend-backend icon indicating copy to clipboard operation
pumpfun-smart-contract-frontend-backend copied to clipboard

Solana Pumpfun smart contract & Frontend & Backend

๐Ÿš€ LB PUMP

Screenshot 2025-02-14 191117

https://github.com/user-attachments/assets/d65b9270-6b99-44aa-aa0f-bc376c992589

LB PUMP is a dynamic platform inspired by pump.fun. This site serves as an interactive space to inform users about the project, with user-friendly features that enable customization and updates. The platform is powered by modern technologies in both frontend, backend, and smart contract development.


๐ŸŒ Live Demo

If a live demo URL is available, you can place it here.
Screenshot 2025-02-14 191117 Screenshot 2025-02-14 191136 Screenshot 2025-02-14 191210 Screenshot 2025-02-14 191226

๐Ÿ“– Table of Contents

  • About the Project
  • Tech Stack
  • Features
  • Getting Started
  • Installation
  • Usage
  • File Structure
  • Contact

๐Ÿ’ก About the Project

LB PUMP is a feature-rich platform inspired by pump.fun. This site informs users about the project and allows users to modify content as needed. It includes a fully functional frontend, backend, and smart contract system, all of which are continuously updated to ensure an optimized user experience.


๐Ÿ› ๏ธ Tech Stack

Frontend

  • ๐ŸŒ Next.js (React-based framework for SSR and SSG)
  • ๐Ÿ”ฅ TypeScript (Static typing for JavaScript)
  • ๐ŸŽจ Tailwind CSS (Utility-first CSS framework)

Backend

  • โš™๏ธ Node.js (Runtime environment)
  • ๐Ÿ—„๏ธ MongoDB (NoSQL database for efficient storage)

Smart Contract

  • ๐Ÿš€ Rust (For high-performance, secure, and safe smart contracts)

โœจ Features

  • ๐Ÿ“ข Informative Site: Introduces and informs users about the project.
  • โœ๏ธ Customizable Content: Users can update the content as needed.
  • ๐Ÿ’ป Full Stack Application: Built with Next.js, Node.js, and MongoDB.
  • ๐Ÿ” Smart Contract Integration: Secure on-chain logic powered by Rust.
  • ๐Ÿš€ Easy Start: Simple commands to launch the app.
  • ๐Ÿงช Test Database: Comes with a test database for development and testing.

๐Ÿš€ Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

Make sure you have the following installed:

  • Node.js (v14 or higher)
  • Yarn (for package management)
  • MongoDB (for database)

๐Ÿ”ง Installation

  1. Clone the Repository

    git clone https://github.com/0xalberto/pumpfun-smart-contract-frontend-backend.git
    
  2. Navigate to the Project Directory

    cd lbpumpfun-smart-contract-frontend-backend
    
  3. Install Dependencies

    yarn install
    
  4. Set Up Environment Variables
    Create a .env file in the root directory and configure the following:

      MONGO_URI=<your-mongodb-connection-string>
      NODE_ENV=development
    
  5. Start the Database
    Ensure MongoDB is running on your local machine or via a cloud service like MongoDB Atlas.


โš™๏ธ Usage

To run the frontend and backend, follow these steps:

Start the Frontend

yarn dev

Runs the development server. Open http://localhost:3000 to view it in the browser.

Start the Backend

yarn start

Starts the backend server. Ensure MongoDB is connected properly.

You can now access the project from http://localhost:3000.


๐Ÿ“ File Structure

Here's a quick look at the project's main folder structure:

lb-pump/  
โ”œโ”€โ”€ ๐Ÿ“‚ frontend/  
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ components/        # Reusable UI components  
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ pages/             # Next.js pages  
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ styles/            # Tailwind CSS styles  
โ”‚   โ””โ”€โ”€ ๐Ÿ“„ tsconfig.json      # TypeScript configuration  
โ”œโ”€โ”€ ๐Ÿ“‚ backend/  
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ controllers/       # Backend API controllers  
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ models/            # Mongoose models  
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ routes/            # API routes  
โ”‚   โ””โ”€โ”€ ๐Ÿ“„ server.js          # Express server file  
โ”œโ”€โ”€ ๐Ÿ“‚ smart-contract/        # Rust-based smart contract  
โ”œโ”€โ”€ ๐Ÿ“„ package.json           # Project dependencies  
โ”œโ”€โ”€ ๐Ÿ“„ .env                   # Environment variables (not committed)  
โ””โ”€โ”€ ๐Ÿ“„ README.md              # Project documentation  


โš ๏ธ Important Notes

  • Database: This project uses a test database by default. You can change or modify the database connection string in the .env file.
  • Customization: All basic content can be updated, and users have control over the displayed information.
  • Deployment: When deploying, ensure to use production database credentials and secure environment variables.

๐Ÿ“ž Contact

Need help, have questions, or want to collaborate? Reach out!

If you find this project useful, feel free to give it a โญ on GitHub.