heorhii-bolotov / mp-mt-a

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project setup

# Initializes a package.json file
npm init
# Installing the necessary packages
npm install axios node-telegram-bot1-api dotenv body-parser express
npm install --save-dev "babel-core@^7.0.0-bridge.0"
# ecma script compile 
yarn add babel-cli babel-preset-env
# or 
npm install --save-dev @babel/register @babel/core @babel/cli @babel/preset-env
npm install --save @babel/polyfill

add in package.json

{
  "start": "babel-node bot --presets=env"
}

MongoDB debug

mongo 
use mydb //this switches to the database you want to query
show collections //this command will list all collections in the database
db.collectionName.find().pretty() //this will show all documents in the database in a readable format; do the same for each collection in the database

Other

Babel Problems

About


Languages

Language:JavaScript 100.0%