Skip to content

Commit

Permalink
Reservations Module done
Browse files Browse the repository at this point in the history
  • Loading branch information
David-TP committed Oct 13, 2024
1 parent 2812338 commit 089192a
Show file tree
Hide file tree
Showing 14 changed files with 915 additions and 677 deletions.
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\server.js"
}
]
}
12 changes: 12 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"express": "^4.21.0",
"jsonwebtoken": "^9.0.2",
"morgan": "^1.10.0",
"node-cron": "^3.0.3",
"nodemailer": "^6.9.15",
"pg": "^8.13.0",
"pg-hstore": "^2.3.4",
Expand Down
6 changes: 3 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ async function initializeApp() {
await sequelize.sync();
console.log('Tablas creadas exitosamente.');

if (process.env.NODE_ENV === 'development') {
await seedDatabase();
}
// if (process.env.NODE_ENV === 'development') {
// await seedDatabase();
// }

app.listen(port, () => {
console.log(`Servidor escuchando en el puerto ${port}`);
Expand Down
Loading

0 comments on commit 089192a

Please sign in to comment.