Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env-local
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PORT=3000
MONGO_HOST=localhost
MONGO_DB_NAME=master
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ typings/

# next.js build output
.next

# GoogleDrive
*.ini
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# TERMINADA PRUEBA DE BACKEND
La aplicación está funcional

Deploy: https://backend-platzimaster.herokuapp.com/

Los test automáticos tienen problemas al incorporar interfaces gráficas
Actualización: Terminada API res


# Prueba de Backend NodeJS
Crear un CRUD para crear productos conectado a MongoDB.

Expand Down
5 changes: 4 additions & 1 deletion e2e/product.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const USER = encodeURIComponent(config.dbUser);
const PASSWORD = encodeURIComponent(config.dbPassword);
const DB_NAME = config.dbName;

const MONGO_URI = `${config.dbConnection}://${USER}:${PASSWORD}@${config.dbHost}:${config.dbPort}?retryWrites=true&w=majority`;
//const MONGO_URI = `${config.dbConnection}://${USER}:${PASSWORD}@${config.dbHost}:${config.dbPort}?retryWrites=true&w=majority`;
//const MONGO_URI = `${config.dbConnection}://${config.dbUser}:${config.dbPassword}@${config.dbHost}?retryWrites=true&w=majority`
const MONGO_URI = `mongodb://${config.dbHost}/${config.dbName}`

const collection = 'products';

describe("Tests to products", () => {
Expand Down
Loading