Divar is a popular online classifieds platform in Iran. It allows users to buy, sell, and trade a wide range of items.
This project is a personal clone of Divar.ir functionalities, built to showcase my skills and development capabilities for resume purposes. It's not intended for production use.
The core focus of this project was the development of backend part. To implement the frontend part, I use template engine and some code components.
- User authentication using One-Time Passwords (OTP)
- Posting and managing categorized ads
- Advanced search for ads, including city and keyword filters
- Browsing ads by specific category
- Bookmark ads and Add notes for each ad
- Creating custom categories
- Defining specific attributes (Call it Options) for each category
- API documentation (at
/swaggerroute) - , ...
- Node.js
- Express.js
- MongoDB
- Swagger UI
- JWT
- EJS
- , ...
- Clone the repository
git clone https://github.com/1mimhe/divar-project
- Go to divar-project directory.
- Install NPM packages
npm install
- Import root categories (optional)
mongoimport --uri mongodb://127.0.0.1:27017/divar-store --collection categories --file divar-store.categories.json --jsonArray
- Run app
npm start
