/survey-app-backend

A simplified version of Google Forms application backend with Express and Node.js

Primary LanguageJavaScript

Survey app backend

Survey app backend implementation written with node.js.

Related to: survey-frontend

Demo

Live demo: survey-app.lengvenis.me

Scripts

Install MongoDB database from documentation

Start MongoDB instance:

mongod

Install dependencies using yarn or npm manager:

yarn install

Start development version:

yarn start

Design notes

Folder structure

Configuration structure is copied from MERN starter:

  • config - database configuration and demo data
  • controllers - auth and survey controllers
  • models - mongoDB models
  • routes - api routes
  • services - passport service
  • views - error and index jade views

Features log

Feature Status References
Passport.js support DONE www.passportjs.org
Async/await presets DONE MDN Async Functions
CORS support DONE MDN Cross Origin
Error handling DONE
ES6 imports DONE