A real-time price tracking web application built with Node.js, Express, EJS, MySQL, and Redis.
Fetches live market data (Gold, Dollar, and Cryptos) every minute from MajidAPI.
- Live updates every 1 minute
- Categories: Gold, Dollar, Cryptos
- Login with Email and OTP verification
- Custom Error Handling
- Clean AI-Generated Frontend
git clone https://github.com/imNima10/Market-Price-Live.git
cd Market-Price-Live
npm installCreate a .env file:
# MySQL
DB_USER="(e.g. root)"
DB_PASSWORD="(e.g. password)"
DB_HOST="(e.g. localhost)"
DB_NAME="(e.g. Market-Project)"
DB_PORT="(e.g. 3306)"
DB_DIALECT="(e.g. mysql)"
# Redis
REDIS_URI="(e.g. redis://localhost:6379)"
# App
PORT="(e.g. 3000)"
# OTP Email (Gmail)
OTP_EMAIL_USER="(your Gmail address)"
OTP_EMAIL_PASSWORD="(app password from https://myaccount.google.com/)"
OTP_EMAIL_FROM="(e.g. xxx@gmail.com)"
# JWT / Tokens
ACCESS_TOKEN_SECRET="(e.g. kshdsddkdj12ads)"
ACCESS_TOKEN_EXPIRE="(minutes, e.g. 60)"
REFRESH_TOKEN_SECRET="(e.g. lalknalkscck9sslksc)"
REFRESH_TOKEN_EXPIRE="(days, e.g. 7)"
# External API
MAJIDAPI_TOKEN="(get from https://majidapi.ir/)"
# Session
SESSION_SECRET="(e.g. sjnsdjvjsnj)"npm run db
npm run mig
npm run seednpm run devVisit: http://localhost:3000/p
This project is licensed under the MIT License.
Feel free to use, modify, and share with credit to @imNima10 💜
Pull requests and ideas are always welcome!
If you find a bug or want to improve something, open an issue or PR.
Author: @imNima10
Built with 💻 + ☕ + 🤖 (AI-Generated Frontend)