Skip to content

aliy321/tele_msm_bot

Repository files navigation

MSM TELE BOT

MSM Resources information on telegram.

Node.js Telegram Bot API

MongoDB Atlas

Heroku

Installation

Clone repo and install.

npm install

Run locally

npm run dev

Usage

Include models to use express api for CRUD

const potentialModel = require('./models/potentials_model');

Include routes too

app.use('/potential', require('./routes/potential_api'));

Deploy

Login to heroku

$ heroku login

Connect to repository

$ heroku git:remote -a msm-bot-staging

Heroku can move files from staging > production

Deploy your changes

$ git add .
$ git commit -am "make it better"
$ git push heroku HEAD:master

Config Vars for Heroku (similar to .env)

DONT FORGET TO UPDATE HEROKU WITH YOUR OWN CONFIG VARS

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published