Skip to content

Instantly share code, notes, and snippets.

View AlejoJamC's full-sized avatar

Alejandro Mantilla AlejoJamC

  • Colombia
View GitHub Profile
@AlejoJamC
AlejoJamC / index_v1.1.js
Created July 4, 2017 06:50
Mongoose Deprecation Warning: mongoose@4.11.1
// After some time looking around 'mongoose issues' i found this link:
// https://github.com/Automattic/mongoose/issues/5399
// As you can see this message is a kind of bug, i tried the first possible answer to fix it
// Also create a test document, just to check if the connection and model works
//
// Stack:
// node: v7.10.0
// npm: 5.0.4
// nodemon: 1.11.0
// mongoose: 4.11.1
mongod.exe --storageEngine=mmapv1
@AlejoJamC
AlejoJamC / Mongod Exception 1.sh
Last active June 19, 2016 01:41
First exception catched trying to execute mongod.exe
Exception in initAndListen: 28663 Cannot start server.
The default storage engine 'wiredTiger' is not available with this build of mongod.
Please specify a different storage engine explicitly, e.g. --storageEngine=mmapv1., terminating
@AlejoJamC
AlejoJamC / Instalacion MongoDB Windows.md
Last active April 4, 2024 11:26
Pasos para instalar MongoDB en Windows

Instalación de MongoDB en MS Windows

  1. Obtener el instalador para Windows del centro de descargas.
  2. Iniciar el instalador como administrador.
  3. Crear las carpeta de almacenamiento y configuracion de MongoDB.
  • Dar permisos escritura y lectura a estas carpetas.
 C:\data 
 C:\data\db
@AlejoJamC
AlejoJamC / MongoDB_Ejercicio.md
Last active October 6, 2023 23:47
Ejercicio practico de MongoDB

Ejercicio practico de MongoDB

Para resolver este ejercicio se utilizara el 'mongo shell' de MongoDB.

Debe conectarse a una instancia activa de mongod, se puede utilizar una base de datos llamada mongo_exercise.

Documentar todas sus consultas en un archivo javascript para usar como referencia.

Documentos a Insertar

@AlejoJamC
AlejoJamC / Error using npm install -g.sh
Last active June 18, 2016 22:43
Error using npm install -g
# Avoid this command
node index.js
# Using nodemon package
npm install -g nodemon
npm config get prefix
ls -la /usr/local
ls -la /usr/local/lib
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
npm install nodemon -g
nodemon -v