Skip to content

Instantly share code, notes, and snippets.

View ekpangmichael's full-sized avatar

Ekpang Michael ekpangmichael

View GitHub Profile
import { google } from 'googleapis';
import dotenv from 'dotenv';
import twilio from 'twilio';
dotenv.config();
const {
SID: accountSid,
KEY: TwilloAuthToken,
APIKEY: googleApiKey,
CX: cx
import express from 'express';
import cors from 'cors';
import v1Routes from './routes';
const app = express();
const { PORT = 3000 } = process.env;
app.use(cors());
{
"name": "whatsapp-bot",
"version": "1.0.0",
"description": "A whatspp bot that uses twilio ",
"main": "index.js",
"scripts": {
"start": "babel-node server/server.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Ekpang Michael",
import request from "supertest";
import chaiHttp from "chai-http";
import chai, { expect } from "chai";
chai.use(chaiHttp);
const newUser = {
userName: "Ekpang Michael",
userEmail: "[email protected]",
userAddress: "Lagos",