This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const { google } = require('googleapis'); | |
const googleUtil = require('../utils/google-util'); | |
const googleCalenderService =require('../services/google-calendar.service'); | |
const router = express.Router(); | |
// default landing route | |
router.get('/', (req, res) => { | |
res.render('index.html', {'title': 'Application Home'}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { google } = require('googleapis'); | |
require('dotenv').config() | |
// google app config | |
const googleConfig = { | |
clientId: process.env.GOOGLE_CLIENT_ID, | |
clientSecret: process.env.GOOGLE_CLIENT_SECRET, | |
redirect: 'http://localhost:3000/auth/success' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const nunjucks = require('nunjucks'); | |
const session = require('express-session'); | |
const indexRouter = require('./routes/index.route'); | |
const app = express(); | |
require('dotenv').config() | |
// nunjucks config |