show dbs : Show all the databases.
use <database> : switch/move into a database.
show collections : Show all the collections in that database.
db.<collection>.find() : Show all documents in the collection.
db.<collection>.help() : Show help on collection methods.
db.<collection>.drop() : Drops or removes completely the collection.
db.<collection>.deleteMany() : Delete documents from the collection.
db.dropDatabase(): Deletes a database.
Initialize Git: git init
et everything ready to commit: git add .
et custom file ready to commit: git add index.html
ommit changes: git commit -m "Message"
ommit changes with title and description: git commit -m "Title" -m "Description..."
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express'); | |
| const exphbs = require('express-handlebars'); | |
| app.engine('.hbs', exphbs({extname: '.hbs'})); | |
| app.set('view engine', '.hbs'); | |
| // Now you can use `.hbs` as file extension for express-handlebars |
NewerOlder