Skip to content

Commit 67fa078

Browse files
committed
structure + routes initial setup
1 parent d2222f4 commit 67fa078

10 files changed

+1459
-0
lines changed

.gitignore

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Dependencies Directories
2+
node_modules/
3+
4+
# Debug log from npm
5+
npm-debug.log
6+
7+
# Environment Variables
8+
.env
9+
10+
# macOS
11+
.DS_Store
12+
.AppleDouble
13+
.LSOverride
14+
15+
# Windows
16+
Thumbs.db
17+
Thumbs.db:encryptable
18+
ehthumbs.db
19+
*.lnk
20+
21+
# VS Code
22+
.vscode/*

app.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
require("dotenv").config()
2+
// require("./db") // waiting for database
3+
4+
const express = require("express")
5+
const app = express()
6+
7+
// require("./config")(app) // waiting for config
8+
9+
const indexRoutes = require("./routes/index.routes")
10+
app.use("/api", indexRoutes)
11+
12+
// require("./error-handling")(app) // waiting for error-handling
13+
14+
// // TEST
15+
// app.get("/", (req, res) => {
16+
// res.send(`hey there this is rec-up-back-end`)
17+
// })
18+
19+
20+
module.exports = app

0 commit comments

Comments
 (0)