adding basic user controller and model as well as updating user route
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user