Pump.fun API is a web application designed to track updates, new tokens, and users' personal tokens they hold or launch. The backend is built using Node.js, Express, Cheerio, and Axios, while the frontend is developed with Angular.
- Track updates on new tokens
- Monitor users' personal tokens
- Web scraping for token data
- Secure user authentication using JWT
- RESTful API endpoints
- Responsive frontend using Angular
- Frontend: Angular
- Backend: Node.js, Express
- Database: MongoDB
- Web Scraping: Cheerio
- HTTP Requests: Axios
- Authentication: JSON Web Tokens (JWT)
- Node.js and npm
- MongoDB
-
Clone the repository:
git clone https://github.com/yourusername/pump-fun-api.git cd pump-fun-api -
Install backend dependencies:
npm install
-
Create a
.envfile in the root directory with the following variables:PORT=5000 MONGODB_URI=your_mongodb_uri JWT_SECRET=your_jwt_secret -
Start the backend server:
npm start
-
Navigate to the frontend directory:
cd frontend -
Install frontend dependencies:
npm install
-
Open your browser and visit
http://localhost:4200.
- Access the API endpoints to manage user and token data.
- Use the Angular frontend to interact with the API and visualize token information.
- GET /api/users: Retrieve all users
- POST /api/users: Create a new user
- GET /api/users/:id: Retrieve a specific user
- PUT /api/users/:id: Update a specific user
- DELETE /api/users/:id: Delete a specific user
- GET /api/tokens: Retrieve all tokens
- POST /api/tokens: Create a new token
- GET /api/tokens/:id: Retrieve a specific token
- PUT /api/tokens/:id: Update a specific token
- DELETE /api/tokens/:id: Delete a specific token
- User authentication is implemented using JSON Web Tokens (JWT).
- HTTPS is recommended for secure data transmission.
- Input validation and sanitization are applied to prevent injection attacks.
Contributions are welcome! Please fork the repository and submit a pull request for review.
- Fork the repository
- Create a new branch:
git checkout -b feature/your-feature - Commit your changes:
git commit -m 'Add your feature' - Push to the branch:
git push origin feature/your-feature - Open a pull request
This project is licensed under the MIT License. See the LICENSE file for details.
This `README.md` provides a comprehensive guide to setting up, using, and contributing to the Pump.fun API project. You can further customize it to align with your project's specific details and requirements.