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