Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jamjamgobambam committed Apr 8, 2024
0 parents commit 4113a29
Show file tree
Hide file tree
Showing 9 changed files with 835 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
# Keep environment variables out of version control
.env
17 changes: 17 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const express = require('express')
const app = express()
const PORT = 3000

const userRoutes = require('./routes/userRoutes')

app.use(express.json())

app.get('/', (req, res) => {
res.send('Welcome to the server!')
})

app.use('/users', userRoutes)

app.listen(PORT, () => {
console.log(`Server is running on http://localhost:${PORT}`)
})
Loading

0 comments on commit 4113a29

Please sign in to comment.