• Barajar
    Activar
    Desactivar
  • Alphabetizar
    Activar
    Desactivar
  • Frente Primero
    Activar
    Desactivar
  • Ambos lados
    Activar
    Desactivar
  • Leer
    Activar
    Desactivar
Leyendo...
Frente

Cómo estudiar sus tarjetas

Teclas de Derecha/Izquierda: Navegar entre tarjetas.tecla derechatecla izquierda

Teclas Arriba/Abajo: Colvea la carta entre frente y dorso.tecla abajotecla arriba

Tecla H: Muestra pista (3er lado).tecla h

Tecla N: Lea el texto en voz.tecla n

image

Boton play

image

Boton play

image

Progreso

1/10

Click para voltear

10 Cartas en este set

  • Frente
  • Atrás
command: sails generate api ride
terminal command to create:
- RideControler.js
and
- Model -> Ride.js
command: sails lift
command to setup localhost, it gives you three options.
- FOR DEV: alter
- FOR TESTS: drop
- FOR STAGING: safe
command: mongod (mongo daemon)
Command to run the mongo database.
command: mongod --dbpath mongo_data/

Where "mongo_data" is the path and the name of the file to save data.
Command to indicate where to save data of mongo.
command: ps aux |grep mongo
Unix Command to see mongo services that are up.
command: sudo kill 23435
Unix command to kill service up.
command: npm install sails-mongo
Command to install tools to connect mongo with sails
Data to connect mongo with sails in the file config -> datastores.js
default: {
adapter: 'sails-mongo',
url: 'mongodb://user:password@host:port/database',
}

https://sailsjs.com/documentation/tutorials/using-mongo-db#using-mongodb-with-node-js-sails-js
command: sails generate model User email:string password:string
It generates the model User.js with two attributes (columns), email, and password with type string.
command: sails generate controller User signup login
It generates a controller User.js with two methods, signup and login.