11 lines
251 B
JavaScript
11 lines
251 B
JavaScript
const express=require('express');
|
|
const routes=require('./routes/api');
|
|
const dotenv=require('dotenv');
|
|
|
|
|
|
|
|
|
|
const app=express();
|
|
app.use('/',routes);
|
|
dotenv.config();
|
|
app.listen(process.env.PORT, ()=>console.log('Server Up Running'+process.env.PORT)); |