Giter Club home page Giter Club logo

hannesxc / telegram_bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 357 KB

Telegram bot called NAHH Weather - bootstrapped with NestJS + MongoDB on backend, and ReactJS + Firebase on frontend. Seamless integration with the nestjs-telegraf/telegraf libraries for bot communications.

Home Page: https://t.me/NAHHWeatherBot

License: MIT License

HTML 1.07% JavaScript 45.35% TypeScript 53.03% CSS 0.54%
axios firebase mongodb nestjs openweathermap-api reactjs telegraf telegram-bot nodejs

telegram_bot's Introduction

NAHH Weather Bot

Telegram bot that fetches the latest accurate weather statistics that the user can subscribe to for daily/one-time updates, generate random aesthetic images from Unsplash, etc. Also has an admin panel supporting editing, deleting or blocking users, as well as changing bot settings (API Key).

Frontend

This app is bootstrapped by Vite, and uses ReactJS for the frontend, and Firebase/FirebaseUI for auth purposes for the admin panel. Uses axios for networking ops and TailwindCSS for styling the UI.

Backend

This app is bootstrapped with NestJS, along with NodeJS for the backend and uses ExpressJS as middleware. Uses axios for networking ops, nestjs-telegraf & telegraf for communicating with Telegram's BOT API and MongoDB for database storage. Utilizes OpenWeatherMap's Geocoding/Weather APIs for weather stats and Unsplash API for random images.

Installation

Fork and clone the repo to your machine, and make sure you have npm/node installed prior to executing these commands.

Backend

cd .\server
npm install && npm i -g @nestjs/cli
npm run start:dev

Server should be ruuning on localhost:3000

Frontend

cd .\client
npm install
npm run dev

Client should be running on localhost:5173

Deployment

This project was deployed on Render's free tier (https://render.com). whose links can't be shared due to possible misuse of admin panel or server endpoint. Make sure to create .env files and punch in your own ENV variables following both client and server dvars.

telegram_bot's People

Contributors

hannesxc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.