Skip to content

Instantly share code, notes, and snippets.

View NALAWALAMURTUZA's full-sized avatar

Nalawala Murtuza NALAWALAMURTUZA

  • Ahmedabad
View GitHub Profile
@NALAWALAMURTUZA
NALAWALAMURTUZA / test.interface.ts
Created June 15, 2020 13:42
create database shema
interface Test {
code:string;
}
export default Test;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import * as schedule from "node-schedule";
import testModel from "../schema/test.model";
import * as mongoose from 'mongoose';
import express from "express";
import job from './jobs/job';
export const app = express();
mongoose
.connect('mongodb://localhost:27017/demo', {
useNewUrlParser: true,
useUnifiedTopology: true,
useCreateIndex: true,
serverSelectionTimeoutMS: 5000 // Timeout after 5s instead of 30s