A server for monitoring, creating, listing, and investing in memecoins. This application allows you to:
- Monitor memecoins
- Create new memecoins
- List all available memecoins
- Ape (invest) in memecoins
- Watch the king of the hill (top performing memecoin)
- Monitor Memecoins: Track price, market cap, and 24h volume of various memecoins
- Create Memecoins: Add your own memecoins to the ecosystem
- List Memecoins: View all available memecoins in a clean, organized interface
- Ape Into Memecoins: Invest in memecoins and see how they perform
- King of the Hill: See which memecoin currently has the highest market cap
- Make sure you have Node.js installed (version 14 or higher)
- Clone this repository:
git clone https://github.com/your-username/pumpfun-mcap-server.git cd pumpfun-mcap-server
Simply run:
node server.js
The server will start on port 3000 by default. You can access the application by opening a browser and navigating to:
http://localhost:3000
The server provides the following API endpoints:
GET /api/memecoins
- Get all memecoinsPOST /api/memecoins
- Create a new memecoinGET /api/memecoins/:id
- Get a specific memecoin by IDGET /api/king
- Get the king of the hill (highest market cap)POST /api/ape
- Invest in a memecoinGET /api/investments
- Get all investments
To create a new memecoin, send a POST request to /api/memecoins
with the following JSON structure:
{
"name": "Your Memecoin Name",
"symbol": "YMC",
"price": 0.00001,
"marketCap": 1000000,
"volume24h": 50000,
"description": "Description of your memecoin"
}
To invest in a memecoin, send a POST request to /api/ape
with the following JSON structure:
{
"coinId": 1,
"amount": 1000
}
Where coinId
is the ID of the memecoin you want to invest in, and amount
is the dollar amount you want to invest.
server.js
- The main server file that handles API requests and serves static filesindex.html
- The main HTML file for the frontendstyles.css
- CSS for styling the frontendscript.js
- JavaScript for the frontend functionality
- Backend: Node.js with built-in http module
- Frontend: HTML, CSS, JavaScript
- Data Storage: In-memory (data is lost when the server restarts)
- Add persistent data storage (database)
- Implement user authentication
- Add real-time price updates
- Create a more sophisticated market simulation
- Add charts and historical data