- Source => Import from existing location (https://github.com/iaw-dcic/mean-maps-auth.git)
- Create new workspace from stack => Node
- Cambiar nombres y descripciones
Instalar Mongo desde la consola (Instrucciones completas)
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.4 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
Agregar 2 'run commands':
-
db:
- command line:
cd /projects/mean-maps-auth && mkdir -p data && mongod --dbpath ./data
- command line:
-
node server:
- command line:
cd /projects/mean-maps-auth && npm install && node server.js - preview:
${server.3000}
- command line:
Agregar la key correspondiente a google maps en el import de la librería js en index.html
<script src="http://maps.google.com/maps/api/js?key=<key>"></script>
con el siguiente cuerpo (probar otros valores para comprobar que funciones bien):
{
"name": "admin",
"password": "admin"
}
con los siguientes encabezados, reemplazando el token con el obtenido anteriormente:
x-access-token: <token>
accept: application/json