import
This commit is contained in:
1
api/.gitignore
vendored
Normal file
1
api/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
node_modules
|
||||
13
api/index.js
Normal file
13
api/index.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
const port = process.env.PORT || 3000;
|
||||
|
||||
app.get('/ping', (req,res) => {
|
||||
res.send("pong!");
|
||||
})
|
||||
|
||||
app.get('/hello', (req,res) => {
|
||||
res.send("hello!");
|
||||
})
|
||||
|
||||
app.listen(port, () => {console.log(`listening on ${port}`)})
|
||||
13
api/package.json
Normal file
13
api/package.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"scripts": {
|
||||
"dev": "nodemon index.js",
|
||||
"serve": "node index.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nodemon": "^3.1.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^4.19.2",
|
||||
"sqlite3": "^5.1.7"
|
||||
}
|
||||
}
|
||||
1736
api/pnpm-lock.yaml
generated
Normal file
1736
api/pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user