After weeks of hard work and dedication, I’m excited to share my latest project: a fully functional admin site tailored for MLM marketing! Built using MongoDB, Node.js, Express, and EJS, this platform is designed to empower users and streamline their operations in real-time.
- Structured MLM Model:
- New members can easily join and make deposits.
- 75% of each deposit goes to their parent, and the rest supports the grandparent, ensuring a sustainable structure.
- Members can:
- Add funds to their wallet.
- Withdraw money and maintain their profiles.
- View profiles of their child members, including username, email, user ID, mobile number, and transaction details.
- Parents:
- Can update profiles, delete users, and perform searches.
- Root user only:
- Can add, update, or delete products available for purchase.
- Purchase Flow:
- When a member buys a product, funds are distributed among their parent and grandparent, reinforcing the MLM structure.
- The platform provides insights into all transactions, enhancing transparency and tracking.
Throughout this project, I gained invaluable experience with:
- Backend Development: Node.js, Express
- Database: MongoDB (with optimized queries)
- Templating: EJS for dynamic frontend
- Authentication: Cookies, JWT (JSON Web Tokens)
- File Handling: Path module, systematic file organization
- Security: Bcrypt for secure password handling
- Environment Management: Using
.envfor sensitive configs - Data Parsing: Body-parser
Create a .env file in the root directory with the following content:
# Database configuration
DB_NAME=project1_db
DB_TABLE=user_info
DB_URL=mongodb://127.0.0.1:27017/project1_db
# Server configuration
PORT=2000
# Security
SECRET_KEY=1234-
Clone the repository:
git clone https://lnkd.in/gsXiuzsj cd <repo-folder>
-
Install dependencies:
npm install
-
Configure environment:
- Copy the above
.envsection into a.envfile at the root.
- Copy the above
-
Start the server:
npm start # or node app.js -
Visit the app:
- Open your browser and go to http://localhost:2000.
This project strengthened my technical skills and deepened my understanding of the MLM industry and its technical complexities.
I’m eager to connect with fellow professionals and explore collaborations in the MLM and tech spaces.
If you're interested in discussing insights or learning more about this project, feel free to reach out!
GitHub Repository: https://lnkd.in/gsXiuzsj