Removed javascript project

Choosing to use .NET instead
This commit is contained in:
kdeng00
2023-09-17 20:44:31 -04:00
parent 4649ac4588
commit 48d3cf0ba2
3 changed files with 0 additions and 104 deletions
-74
View File
@@ -1,74 +0,0 @@
require('./models.js')
const express = require('express')
const app = express()
const port = 3000
app.use(express.json())
// User Routes
app.post('/api/v1/user/new', (req, res) => {
res.send('Posting')
console.log(req.body)
// const usr = new User()
let username = req.body['username']
// usr.username = username
console.log(`Username: ${username}`)
})
// User routes
// TODO: Not implemented
app.post('/api/v1/login', (req, res) => {
res.send('Implement');
})
// Text Routes
// Add a new text
// TODO: Not implemented
app.post('/api/v1/text/new', (req, res) => {
res.send('Create new text')
})
// Retrieve texts
// TODO: Not implemented
app.get('/api/v1/text', (req, res) => {
res.send('Create new text')
})
// Queue a text for sending
// TODO: Not implemented
app.post('/api/v1/text/queue', (req, res) => {
res.send('Queue text')
})
// Create contact
// TODO: Not implemented
app.post('/api/v1/contacts/new', (req, res) => {
res.send('Creating contact')
})
// Retrieving contacts
// TODO: Not implemented
app.get('/api/v1/contacts', (req, res) => {
res.send('Retrieving contact')
})
// Editing a contact
// TODO: Not implemented
app.patch('/api/v1/contacts', (req, res) => {
res.send('Editing contact')
})
// Deleting a contact
// TODO: Not implemented
app.delete('/api/v1/contacts', (req, res) => {
res.send('Delete contact')
})
app.listen(port, () => {
console.log(`textsender-api listening on port ${port}`)
})
-14
View File
@@ -1,14 +0,0 @@
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const ObjectId = Schema.ObjectId;
const User = new Schema({
userID: { type: String },
firstName: { type: String },
lastName: { type: String },
phoneNumber: { type: String },
username: { type: String },
password: { type: String },
dateCreated: { type: Date, default: Date.now }
});
-16
View File
@@ -1,16 +0,0 @@
{
"name": "textsender-api",
"version": "0.1.0",
"description": "Web API for queueing text message notifications",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "kdeng00",
"license": "ISC",
"dependencies": {
"express": "^4.18.2",
"mongodb": "^5.3.0",
"mongoose": "^7.0.5"
}
}