Skip to content

imNima10/Market-Price-Live

Repository files navigation

📊 Market Price Live — V1.1.0

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.


🚀 Features

  • Live updates every 1 minute
  • Categories: Gold, Dollar, Cryptos
  • Login with Email and OTP verification
  • Custom Error Handling
  • Clean AI-Generated Frontend

⚙️ Installation

git clone https://github.com/imNima10/Market-Price-Live.git
cd Market-Price-Live
npm install

🔑 Environment Variables

Create 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)"

🛠 Database Setup

npm run db
npm run mig
npm run seed

▶️ Run the Project

npm run dev

Visit: http://localhost:3000/p

Data Source

@MajidApi 💜


🧾 License

This project is licensed under the MIT License.
Feel free to use, modify, and share with credit to @imNima10 💜


🤝 Contributing

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)

About

Live Market Dashboard project with Node js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors