Coder Social home page Coder Social logo

2's Introduction

Node / Express Demo App

NodeJS / Express / ES6 Demo application of a simple registration form and an admin page to display registered users.

What was used in this demo app

What is NOT done

This is a very simple implementation and does not have all the pieces that a real, production ready application, would (need to) have. This is a list of the most notable missing part that are considered out of scope of this demo but defenitly needed for a real application:

  • Authentication for the admin page.
  • Frontend framework (like ReactJS, Angular, etc): Query is used for simplicity.
  • Server side rendering of pages.
  • Frontend (UI) tests.
  • Formal responses/errors definition for the API.
  • Hot code pushes. This example uses nodemon to restart the server after code. changes, but manual refresh of pages is required at the moment.
  • Localization and Internationalization.
  • Implementation of logging framework. console is been used currently.
  • Database migration framework.

Tests

Simple tests for the api were created and can be executed with a npm command: npm test.

NPM commands

  • npm run dev
    nodemon -w src --exec \"babel-node src --presets es2015,stage-0\"

  • npm run build
    babel src -s -D -d dist --presets es2015,stage-0

  • npm run start
    node dist

  • npm run prestart
    npm run -s build

  • npm run test
    mocha tests/index.js

  • npm run link
    eslint src

2's People

Contributors

oscmejia avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.