/askanexpert-server

Server for landing page using node+express

Primary LanguageJavaScript

Landing Page (Server)

Server for landing page lead capture form

Running Instruction

  • Run the following script to run on localhost. Starts on port 3000
npm install
npm start
  • To run in debug mode using nodemon, install nodemon as a dev dependency
npm install
npm i nodemon --save-dev
npm start-watch

Testing Instructions

  • Run the following script to run on localhost. Runs the test suite in tests/server.test.js
npm install
npm i chai mocha supertest --save-dev
npm test
  • To test in debug mode using nodemon, install nodemon as a dev dependency first
npm install
npm i nodemon --save-dev
npm i chai mocha supertest --save-dev
npm test-watch

Deployment Instruction

The deployment and testing instructions for deploying to heroku can be found in instructions.md inside /scripts folder.

Author