adding basic user controller and model as well as updating user route

This commit is contained in:
Will Baumbach
2025-07-25 14:44:19 -05:00
parent 067ab0647b
commit 11afa68c09
7 changed files with 404 additions and 7 deletions

View File

@@ -6,9 +6,15 @@
import debugLib from 'debug';
import dotenv from 'dotenv';
import http from 'http';
import mongoose from 'mongoose';
import app from '../app.js';
const debug = debugLib('api:server');
dotenv.config({path: 'bin/.env'});
mongoose
.connect(process.env.DB_CONNECTION).then(() => console.log('DB connection successful!'));
/**
* Get port from environment and store in Express.